Quantcast
Channel: Unity Ads & User Acquisition
Viewing all articles
Browse latest Browse all 6164

if (loadCount % 3 == 0) // only show ad every third time { not working

$
0
0
you mead csripts

Code (CSharp):
  1. void OnTriggerEnter2D(Collider2D col)
  2. {
  3.     if (LayerMask.LayerToName (col.gameObject.layer).Equals (NinjaRopeConst.PLAYER_CHILD))
  4.     {
  5.         if (GameOverDialog != null) {
  6.             GameOverDialog.SetActive (true);
  7.         }
  8.  
  9.         gameOver = true;
  10.         //loadCount ++;
  11.         Destroy (col.gameObject.transform.parent.gameObject);
  12.  
  13.         if (loadCount % 3 == 0) // only show ad every third time
  14.         {
  15.             ///ShowAd();...
if (loadCount % 3 == 0) // only show ad every third time { not working

Viewing all articles
Browse latest Browse all 6164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>