Exemple #1
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
    }