예제 #1
0
 public void resumeClick()
 {
     if (!gameControl.pauseGame())
     {
         panelBG.SetActive(false);
     }
 }
예제 #2
0
 public void pauseClick()
 {
     if (gameControl.pauseGame())
     {
         this.GetComponent <Image> ().sprite = imgPause;
         textPause.text = "resume";
         Debug.Log("pause");
     }
     else
     {
         this.GetComponent <Image> ().sprite = imgResume;
         textPause.text = "pause";
         Debug.Log("resume");
     }
 }