public override void showRewardVideo() { JsonData data = new JsonData(); data["Type"] = 6; data["Ret"] = 1; UCallback.GetInstance().SdkInterfaceCallback(data.ToJson()); }
public override void showInterstitialAd() { this.Log("showInterstitialAd"); JsonData data = new JsonData(); data["Ret"] = 1; data["Type"] = 2; UCallback.GetInstance().SdkInterfaceCallback(data.ToJson()); }
public override void pay4RemoveAd() { this.Log("pay4RemoveAd"); JsonData data = new JsonData(); data["Ret"] = 1; data["Type"] = 8; UCallback.GetInstance().SdkInterfaceCallback(data.ToJson()); }
protected override void Init() { #if UNITY_IOS && !UNITY_EDITOR Debug.Log("Sdk init iosSdkInterface"); m_interface = new iosSdkInterface(); #elif UNITY_ANDROID && !UNITY_EDITOR Debug.Log("Sdk init androidInterface"); m_interface = new androidInterface(); #else Debug.Log("Sdk init pcSdkInterface"); m_interface = new pcSdkInterface(); #endif UCallback.GetInstance(); }
public void showIntersitialAD(Action onReward, Action onFail, Action onClose) { UCallback.GetInstance().onReward = onReward; UCallback.GetInstance().onFail = onFail; m_interface.showInterstitialAd(); }
public void showRewardVideo(Action onReward, Action onFail, Action onClose) { UCallback.GetInstance().onReward = onReward; UCallback.GetInstance().onFail = onFail; m_interface.showRewardVideo(); }