IEnumerator loadAds() { while (!rewardedAd.IsLoaded()) { yield return(null); } rewardedAd.Show(); gameUI.Resume(); }
private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { if (isPaused) { instance.Resume(); } else { instance.ShowPauseScreen(); } } }