Пример #1
0
        protected override void OnButtonClicked()
        {
#if VOODOO_SAUCE
            VoodooSauce.ShowRewardedVideo(OnRewardedVideoCompleted);
#elif UNITY_EDITOR
            OnRewardedVideoCompleted(true);
#endif
        }
Пример #2
0
        /// <summary>
        /// Show the Rewarded Video
        /// </summary>
        public void ShowRewardedVideo()
        {
            if (currencyManager == null)
            {
                currencyManager = CurrencyManager.Instance;
            }

#if VOODOO_SAUCE
            VoodooSauce.ShowRewardedVideo(OnComplete);
#else
            currencyManager.AddToCurrency(RVBonusValue, RVBonusCurrency);
#endif
        }