Beispiel #1
0
 public void HandleInterstitialClosed(object sender, EventArgs args)
 {
     mainThreadDispatcher.Enqueue(() => {
         onAdClosed();
         isShowing = false;
     });
 }
        public void HandleRewardBasedVideoClosed(object sender, EventArgs args)
        {
            mainThreadDispatcher.Enqueue(() => {
                if (entireVideoWatched)
                {
                    onRewardVideoWatched(true);
                }
                else
                {
                    onRewardVideoWatched(false);
                }
                isShowing = false;
            });

            RequestRewardedVideo();

            Debug.Log("STOP SHOWING REWARDED VIDEO");
            MonoBehaviour.print("HandleRewardBasedVideoClosed event received");
        }