Exemplo n.º 1
0
 public void PlayAd()
 {
     if (!UnityAdsPlacement.RewardedAdReady())
     {
         ShowPopup("Sorry, we were unable to load the ad.");
     }
     else
     {
         UnityAdsPlacement.ShowRewardedAd((succ) =>
         {
             if (succ)
             {
                 ON_COMPLETE.Invoke();
             }
             else
             {
                 ShowPopup("You must finish watching the ad to receive your reward.");
             }
         });
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }