示例#1
0
 private void Playing()
 {
     Time.timeScale = 1;
     LoseUI.SetActive(false);
     StartUI.SetActive(false);
     score.SetActive(true);
 }
示例#2
0
    /// <summary>
    /// 销毁场景
    /// </summary>
    /// <returns></returns>
    IEnumerator DisableAll()
    {
        DisableFruits(true);
        yield return(new WaitForSeconds(1f));

        LoseUI.SetActive(true);
    }
示例#3
0
 public void PlayerLose()
 {
     Paused = true;
     AudioController.Instance.StopInGameMusicAudio();
     AudioController.Instance.PlayLoseSoundAudio();
     Time.timeScale = 0;
     LoseUI.SetActive(true);
 }
示例#4
0
    public void PlayerLose()
    {
        //audioManager.PlaySound("Lose");
        //Enemies Win
        //Time.timeScale = 0f;

        LoseUI.SetActive(true);
    }
示例#5
0
 void Start()
 {
     /*_stateMachines.Reset();
      * _stateMachines.RegisterHandler();*/
     _state         = States.Begin;
     Time.timeScale = 0;
     StartUI.SetActive(true);
     LoseUI.SetActive(false);
     score.SetActive(false);
 }
示例#6
0
 private void GameOver()
 {
     LoseUI.SetActive(true);
     Time.timeScale = 0;
 }
 public void PlayerLose()
 {
     LoseUI.SetActive(true);
     SoundManager.instance.RandomizeSfx(loseSound);
 }