you mead csripts
if (loadCount % 3 == 0) // only show ad every third time { not working
Code (CSharp):
- void OnTriggerEnter2D(Collider2D col)
- {
- if (LayerMask.LayerToName (col.gameObject.layer).Equals (NinjaRopeConst.PLAYER_CHILD))
- {
- if (GameOverDialog != null) {
- GameOverDialog.SetActive (true);
- }
- gameOver = true;
- //loadCount ++;
- Destroy (col.gameObject.transform.parent.gameObject);
- if (loadCount % 3 == 0) // only show ad every third time
- {
- ///ShowAd();...