예제 #1
0
    void OnRewardShow(string zoneId)
    {
        Debug.Log("OnRewardShow");
        if (dicRewardShow.ContainsKey(zoneId))
        {
            Action onRewardShow = dicRewardShow[zoneId];
            onRewardShow();

            BidmadReward reward = new BidmadReward(zoneId);
            reward.load();
        }
    }
예제 #2
0
    public void LoadRewardAd()
    {
#if UNITY_ANDROID
        if (reward == null)
        {
            reward = new BidmadReward("7d9a2c9e-5755-4022-85f1-6d4fc79e4418");
        }
#elif UNITY_IOS
        if (reward == null)
        {
            reward = new BidmadReward("29e1ef67-98d2-47b3-9fa2-9192327dd75d");
        }
#endif
        reward.load();

        reward.setRewardLoadCallback(OnRewardLoad);
        reward.setRewardShowCallback(OnRewardShow);
        reward.setRewardFailCallback(OnRewardFail);
        reward.setRewardCompleteCallback(OnRewardComplete);
        reward.setRewardSkipCallback(OnRewardSkip);
        reward.setRewardCloseCallback(OnRewardClose);
    }