예제 #1
0
	public void ShowInterstitialAds()
	{
		if (!playerData.purchasedNoAds && adsTimer >= 200) //
		{
			adsTimer = 0;

			if (unityAds.IsUnityInterstitialAdsReady())
			{
				unityAds.DisplayInterstitialAds();
			}
			else if (admobAds.IsInterstitialAdReady())
			{
				admobAds.ShowInterstitial();
			}
		}
	}
예제 #2
0
    public void ShowInterstitialAds()
    {
#if UNITY_WEBGL
        PlayAdsenseAds();
#else
        if (!playerData.purchasedNoAds)
        {
            if (unityAdsManager.IsUnityInterstitialAdsReady())
            {
                Debug.Log("show unity interstitial ads =================================== ");
                unityAdsManager.DisplayInterstitialAds();
            }
            else
            {
                Debug.Log("show admob interstitial ads =================================== ");

                admobManager.Invoke("ShowInterstitial", 0.5f);
            }
        }
#endif
    }