public void ShowAds() { if (interstitial.IsLoaded()) { interstitial.Show(); Debug.Log("Interstitial reklamı gösterildi"); } interAdsController = null; Destroy(gameObject); }
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"); } } }