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