Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (deathManager.GetDeathCount() == 1 && loaded == false)
     {
         RequestInterstitial();
         loaded = true;
     }
     if (deathManager.GetDeathCount() >= 3)
     {
         loaded = false;
         if (this.interstitial.IsLoaded())
         {
             this.interstitial.Show();
             Debug.Log("AD Showed");
             deathManager.SetDeathCount(0);
         }
     }
 }