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);
 }