Exemplo n.º 1
0
 public void Win()
 {
     GameController.gameController.GameState = (int)GameState.WIN;
     NoSelect.SetActive(true);
     StartCoroutine(IEWin());
     Debug.Log("WIN");
 }
Exemplo n.º 2
0
    public void Lost()
    {
        GameController.gameController.GameState = (int)GameState.LOST;
        NoSelect.SetActive(true);

        StartCoroutine(DisableAll());
        SoundController.Sound.Lose();
        showFullAds();
        Debug.Log("LOSE");
    }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 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;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// 升级
 /// </summary>
 public void ClassicLvUp()
 {
     GameController.gameController.GameState = (int)GameState.WIN;
     NoSelect.SetActive(false);
     StartCoroutine(UpLevel());
 }