Exemple #1
0
    public void ShowInterstitial(Action callback = null)
    {
        if (Consts.AdsRemoved() || this.interstitial == null)
        {
            callback?.Invoke();
            return;
        }
        this.interstitialVideoAdCallback = callback;
        if (this.interstitial.IsLoaded())
        {
            this.interstitial.Show();
        }
        else
        {
            RequestInterstitial();
        }
#if UNITY_EDITOR
        HandleOnAdClosed(null, null);
#endif

        RequestInterstitial();
    }