Exemplo n.º 1
0
        //public void StartCountDown()
        //{
        //    add = 0;
        //    isRun = useReShow;
        //}
        //public void StopCountDown()
        //{
        //    isRun = false;
        //}
        public void Hide()
        {
            //StopCountDown();
            onHide?.Invoke();
#if !UNITY_EDITOR
            if (this.mExpressBannerAd != null)
            {
                NativeAdManager.Instance().DestoryExpressAd(this.mExpressBannerAd.handle);
                this.mExpressBannerAd = null;
            }
            LoadExpressBannerAd();
#endif
        }
Exemplo n.º 2
0
 public void OnAdClose(ExpressAd ad)
 {
     Debug.Log("express OnAdClose,type:" + type);
 }
Exemplo n.º 3
0
 public void OnAdViewRenderSucc(ExpressAd ad, float width, float height)
 {
     Debug.Log("express OnAdViewRenderSucc,type:" + type);
 }
Exemplo n.º 4
0
 public void OnAdViewRenderError(ExpressAd ad, int code, string message)
 {
     Debug.Log("express OnAdViewRenderError,type:" + type);
 }
Exemplo n.º 5
0
 public void OnAdShow(ExpressAd ad)
 {
     banner.onShow?.Invoke();
     Debug.Log("express OnAdShow,type:" + type);
 }
Exemplo n.º 6
0
 public void OnAdClicked(ExpressAd ad)
 {
     Debug.Log("express OnAdClicked,type:" + type);
 }
Exemplo n.º 7
0
 public void OnAdClose(ExpressAd ad)
 {
     Debug.LogError("express OnAdClose,type:" + type);
     this.example.information.text = "OnAdClose:" + type;
 }
Exemplo n.º 8
0
 public void OnAdViewRenderSucc(ExpressAd ad, float width, float height)
 {
     Debug.LogError("express OnAdViewRenderSucc,type:"+type);
     this.example.information.text = "OnAdViewRenderSucc:" + type;
 }
Exemplo n.º 9
0
 public void OnAdViewRenderError(ExpressAd ad, int code, string message)
 {
     Debug.LogError("express OnAdViewRenderError,type:" + type);
     this.example.information.text = "OnAdViewRenderError:" + message + ":" + type;
 }
Exemplo n.º 10
0
    /// <summary>
    /// Dispose the reward Ad.
    /// </summary>
    public void DisposeAds()
    {
#if UNITY_IOS
        if (this.rewardAd != null)
        {
            this.rewardAd.Dispose();
            this.rewardAd = null;
        }
        if (this.fullScreenVideoAd != null)
        {
            this.fullScreenVideoAd.Dispose();
            this.fullScreenVideoAd = null;
        }

        if (this.nativeFeedAd != null)
        {
            this.nativeFeedAd.Dispose();
            this.nativeFeedAd = null;
        }
        if (this.mExpressFeedad != null)
        {
            this.mExpressFeedad.Dispose();
            this.mExpressFeedad = null;
        }
        //if (this.intersititialAd != null)
        //{
        //    this.intersititialAd.Dispose();
        //    this.intersititialAd = null;
        //}
        if (this.expressRewardAd != null)
        {
            this.expressRewardAd.Dispose();
            this.expressRewardAd = null;
        }
        if (this.expressFullScreenVideoAd != null)
        {
            this.expressFullScreenVideoAd.Dispose();
            this.expressFullScreenVideoAd = null;
        }
        if (this.iExpressBannerAd != null)
        {
            this.iExpressBannerAd.Dispose();
            this.iExpressBannerAd = null;
        }
#else
        if (this.rewardAd != null)
        {
            this.rewardAd = null;
        }
        if (this.fullScreenVideoAd != null)
        {
            this.fullScreenVideoAd = null;
        }
        if (this.mNativeAd != null)
        {
            this.mNativeAd = null;
        }
        if (this.mExpressFeedad != null)
        {
            NativeAdManager.Instance().DestoryExpressAd(mExpressFeedad.handle);
            mExpressFeedad = null;
        }
        if (this.mExpressBannerAd != null)
        {
            NativeAdManager.Instance().DestoryExpressAd(mExpressBannerAd.handle);
            mExpressBannerAd = null;
        }
        if (this.mExpressInterstitialAd != null)
        {
            NativeAdManager.Instance().DestoryExpressAd(mExpressInterstitialAd.handle);
            mExpressInterstitialAd = null;
        }
#endif
    }