Пример #1
0
 // 游戏的几种状态
 public void Success()
 {
     Time.timeScale = 0f;
     RestartBtn.SetActive(true);
     PauseBtn.SetActive(false);
     JoyStickBtn.SetActive(false);
     SuccessText.SetActive(true);
 }
Пример #2
0
 public void GamePause()
 {
     Time.timeScale = 0f;
     PauseBtn.SetActive(false);
     ContinueBtn.SetActive(true);
     RestartBtn.SetActive(true);
     JoyStickBtn.SetActive(false);
     ArchiveBtn.SetActive(false);
 }
Пример #3
0
 public void GameOver()
 {
     Time.timeScale = 0f;
     GameOverText.SetActive(true);
     RestartBtn.SetActive(true);
     ArchiveBtn.SetActive(true);
     PauseBtn.SetActive(false);
     JoyStickBtn.SetActive(false);
 }
Пример #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);
 }