예제 #1
0
        public override void Do()
        {
            var ad = RefinterEx.GetShared <IInterstitialAdAPI>();

            if (ad != null)
            {
                ad.Show();
            }
            else
            {
                this.Log("ShowInterstitialAd");
            }
            Condition = true;
        }
예제 #2
0
        public override void Do()
        {
            var ad = RefinterEx.GetShared <IDialogPageAd>();

            if (ad != null)
            {
                ad.Show();
            }
            else
            {
                this.Log("ShowDialogPageAd");
            }
            Condition = true;
        }
예제 #3
0
        public override void Do()
        {
            var ba = RefinterEx.GetShared <IBannerAd>();

            if (ba != null)
            {
                if (isShow.value)
                {
                    ba.Show();
                }
                else
                {
                    ba.Hide();
                }
            }
            else
            {
                this.Log($"banner {(isShow.value?"Show":"Hide")}");
            }
            Condition = true;
        }
예제 #4
0
        public override void Do()
        {
            var e = RefinterEx.GetShared <IAnalyzeEvent>();

            if (e != null)
            {
                if (values == null || values.kvs.Count == 0)
                {
                    e.SetEvent(key.value);
                }
                else
                {
                    e.SetEvent(key.value, values.kvs);
                }
            }
            else
            {
                _Debug();
            }

            Condition = true;
        }
예제 #5
0
        public override void Do()
        {
            System.Type iType = null;
            switch (type.type)
            {
            case AdType.AdTypeEnum.Reward:
                iType = typeof(MiniGameSDK.IRewardAdAPI);
                break;

            case AdType.AdTypeEnum.Banner:
                iType = typeof(MiniGameSDK.IBannerAd);
                break;

            case AdType.AdTypeEnum.Interstitial:
                iType = typeof(MiniGameSDK.IInterstitialAdAPI);
                break;
            }
            if (iType != null)
            {
                RefinterEx.SetShared(iType, null);
            }
            //this.Log("adad");
            Condition = true;
        }
예제 #6
0
 public override IComponent GetValue()
 {
     value.reward = RefinterEx.GetShared <IRewardAdAPI>();
     return(base.GetValue());
 }