Пример #1
0
    public void ShowVideo(Action rewardedCallback)
    {
        if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.OSXEditor)
        {
            rewardedCallback();
            return;
        }

        if (Admob.RewardBasedVideo.IsLoaded())
        {
            Admob.ShowVideo(rewardedCallback);
        }
        else
        {
            Admob.RequestVideo();
            Unity.ShowRewardedAd(rewardedCallback);
        }
    }