public override void Do() { var ad = RefinterEx.GetShared <IInterstitialAdAPI>(); if (ad != null) { ad.Show(); } else { this.Log("ShowInterstitialAd"); } Condition = true; }
public override void Do() { var ad = RefinterEx.GetShared <IDialogPageAd>(); if (ad != null) { ad.Show(); } else { this.Log("ShowDialogPageAd"); } Condition = true; }
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; }
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; }
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; }
public override IComponent GetValue() { value.reward = RefinterEx.GetShared <IRewardAdAPI>(); return(base.GetValue()); }