예제 #1
0
    IEnumerator loadAds()
    {
        while (!rewardedAd.IsLoaded())
        {
            yield return(null);
        }

        rewardedAd.Show();
        gameUI.Resume();
    }
예제 #2
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         if (isPaused)
         {
             instance.Resume();
         }
         else
         {
             instance.ShowPauseScreen();
         }
     }
 }