public void Win() { GameController.gameController.GameState = (int)GameState.WIN; NoSelect.SetActive(true); StartCoroutine(IEWin()); Debug.Log("WIN"); }
public void Lost() { GameController.gameController.GameState = (int)GameState.LOST; NoSelect.SetActive(true); StartCoroutine(DisableAll()); SoundController.Sound.Lose(); showFullAds(); Debug.Log("LOSE"); }
public void Resume() { SoundController.Sound.Click(); if (GameController.gameController.GameState == (int)GameState.PAUSE) { GameController.gameController.GameState = (int)GameState.PLAYING; NoSelect.SetActive(false); PauseUI.SetActive(false); Time.timeScale = 1; } }
public void Pause() { SoundController.Sound.Click(); if (GameController.gameController.GameState == (int)GameState.PLAYING) { GameController.gameController.GameState = (int)GameState.PAUSE; NoSelect.SetActive(true); PauseUI.SetActive(true); Time.timeScale = 0; } }
/// <summary> /// 升级 /// </summary> public void ClassicLvUp() { GameController.gameController.GameState = (int)GameState.WIN; NoSelect.SetActive(false); StartCoroutine(UpLevel()); }