Esempio n. 1
0
 // 游戏的几种状态
 public void Success()
 {
     Time.timeScale = 0f;
     RestartBtn.SetActive(true);
     PauseBtn.SetActive(false);
     JoyStickBtn.SetActive(false);
     SuccessText.SetActive(true);
 }
Esempio n. 2
0
 public void GamePause()
 {
     Time.timeScale = 0f;
     PauseBtn.SetActive(false);
     ContinueBtn.SetActive(true);
     RestartBtn.SetActive(true);
     JoyStickBtn.SetActive(false);
     ArchiveBtn.SetActive(false);
 }
Esempio n. 3
0
 public void GameOver()
 {
     Time.timeScale = 0f;
     GameOverText.SetActive(true);
     RestartBtn.SetActive(true);
     ArchiveBtn.SetActive(true);
     PauseBtn.SetActive(false);
     JoyStickBtn.SetActive(false);
 }
Esempio n. 4
0
 public void GameContinue()
 {
     Time.timeScale = 1f;
     PauseBtn.SetActive(true);
     ContinueBtn.SetActive(false);
     JoyStickBtn.SetActive(true);
     RestartBtn.SetActive(false);
     ArchiveBtn.SetActive(false);
     GameOverText.SetActive(false);
     StartBtn.SetActive(false);
 }