GoogleMobileAdsScript.ShowInterstitial C# (CSharp) Method

ShowInterstitial() public method

public ShowInterstitial ( ) : void
return void
    public void ShowInterstitial()
    {
        if (disableAds)
            return;

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

Usage Example

Exemplo n.º 1
0
 private void OnDestroy()
 {
     if (++gameCount == 5)
     {
         GoogleMobileAdsScript.ShowInterstitial();
         gameCount = 0;
     }
     LockRegister.DestroyBoard();
     Destroy(score);
     Destroy(restart);
     Destroy(multiTouch);
     Destroy(wall);
     Instantiate(menu);
 }