예제 #1
0
 void OnMouseDown()
 {
     if (paused == true)
     {
         script.ContinueGame();
         pauseText.text = "Pause";
         paused         = false;
         return;
     }
     if (paused == false)
     {
         script.PauseGame();
         pauseText.text = "Resume";
         paused         = true;
         return;
     }
 }
예제 #2
0
 void OnMouseDown()
 {
     script.ContinueGame();
     Destroy(GameObject.FindWithTag("pauseCanvas"));
 }