GoogleMobileAdsScript.ShowInterstitial C# (CSharp) Метод

ShowInterstitial() публичный Метод

public ShowInterstitial ( ) : void
Результат void
    public void ShowInterstitial()
    {
        if (disableAds)
            return;

        if (interstitial.IsLoaded())
        {
            interstitial.Show();
        }
    }

Usage Example

Пример #1
0
 private void OnDestroy()
 {
     if (++gameCount == 5)
     {
         GoogleMobileAdsScript.ShowInterstitial();
         gameCount = 0;
     }
     LockRegister.DestroyBoard();
     Destroy(score);
     Destroy(restart);
     Destroy(multiTouch);
     Destroy(wall);
     Instantiate(menu);
 }