예제 #1
0
 public void ShowAds()
 {
     if (interstitial.IsLoaded())
     {
         interstitial.Show();
         Debug.Log("Interstitial reklamı gösterildi");
     }
     interAdsController = null;
     Destroy(gameObject);
 }
예제 #2
0
    void Start()
    {
        removeAds = PlayerPrefs.GetInt("RemoveAds");
        if (removeAds != 1)
        {
            if (interAdsController == null)
            {
                DontDestroyOnLoad(gameObject);
                interAdsController = this;
                Debug.Log("Interstitial controller oluşturuldu");

                SetApplicationIds();
                RequestInterstitial();

                interstitial.OnAdClosed += HandleOnAdClosed;
            }
            else
            {
                Destroy(gameObject);
                Debug.Log("null check Destroy");
            }
        }
    }