Exemplo n.º 1
0
    public override void showRewardVideo()
    {
        JsonData data = new JsonData();

        data["Type"] = 6;
        data["Ret"]  = 1;
        UCallback.GetInstance().SdkInterfaceCallback(data.ToJson());
    }
Exemplo n.º 2
0
    public override void showInterstitialAd()
    {
        this.Log("showInterstitialAd");
        JsonData data = new JsonData();

        data["Ret"]  = 1;
        data["Type"] = 2;
        UCallback.GetInstance().SdkInterfaceCallback(data.ToJson());
    }
Exemplo n.º 3
0
    public override void pay4RemoveAd()
    {
        this.Log("pay4RemoveAd");
        JsonData data = new JsonData();

        data["Ret"]  = 1;
        data["Type"] = 8;
        UCallback.GetInstance().SdkInterfaceCallback(data.ToJson());
    }
Exemplo n.º 4
0
    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();
    }
Exemplo n.º 5
0
 public void showIntersitialAD(Action onReward, Action onFail, Action onClose)
 {
     UCallback.GetInstance().onReward = onReward;
     UCallback.GetInstance().onFail   = onFail;
     m_interface.showInterstitialAd();
 }
Exemplo n.º 6
0
 public void showRewardVideo(Action onReward, Action onFail, Action onClose)
 {
     UCallback.GetInstance().onReward = onReward;
     UCallback.GetInstance().onFail   = onFail;
     m_interface.showRewardVideo();
 }