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."); } }); } }
void Awake() { instance = this; }