Ejemplo n.º 1
0
 void OnApplicationFocus(bool hasFocus)
 {
     if (hasFocus)
     {
         // Notify application focus on ads
         AdsController.OnResume();
     }
 }
Ejemplo n.º 2
0
 void OnApplicationFocus(bool hasFocus)
 {
     if (hasFocus)
     {
         // Ignore if we've just showen an ad
         if (hasJustShowenbAd)
         {
             hasJustShowenbAd = false;
         }
         else
         {
             // Notify application focus on ads
             AdsController.OnResume();
             // Show interstitial
             AdsController.ShowInterstitialAd();
             // Set showen ad flag
             hasJustShowenbAd = true;
         }
     }
 }