Esempio n. 1
0
    public static bool playRewardedVideo(enAdNetwork adNetwork, RewardedVideoFinishHandler handler)
    {
        if (!mAdsDic.ContainsKey(adNetwork))
        {
            Debug.LogError("showRewardedVideo invalid adnetwork:" + adNetwork);
            return(false);
        }

        EZAdsInterface adObject = mAdsDic[adNetwork];

        if (mEventDic.ContainsKey(adNetwork))
        {
            adObject.RewardedVideoHandler -= mEventDic[adNetwork];
            mEventDic.Remove(adNetwork);
        }
        adObject.RewardedVideoHandler += handler;
        mEventDic.Add(adNetwork, handler);
        return(adObject.playRewardedVideo());
    }
Esempio n. 2
0
    public void onChartboostRewardedVideoPlay()
    {
        RewardedVideoFinishHandler handler = onChartboostRewardedVideoFinish;

        EZAdsManager.playRewardedVideo(enAdNetwork.Chartboost, handler);
    }
Esempio n. 3
0
    public void OnAdmobRewardedVideoPlay()
    {
        RewardedVideoFinishHandler handler = OnAdmobRewardedVideoFinish;

        EZAdsManager.playRewardedVideo(enAdNetwork.Admob, handler);
    }