private void Playing() { Time.timeScale = 1; LoseUI.SetActive(false); StartUI.SetActive(false); score.SetActive(true); }
/// <summary> /// 销毁场景 /// </summary> /// <returns></returns> IEnumerator DisableAll() { DisableFruits(true); yield return(new WaitForSeconds(1f)); LoseUI.SetActive(true); }
public void PlayerLose() { Paused = true; AudioController.Instance.StopInGameMusicAudio(); AudioController.Instance.PlayLoseSoundAudio(); Time.timeScale = 0; LoseUI.SetActive(true); }
public void PlayerLose() { //audioManager.PlaySound("Lose"); //Enemies Win //Time.timeScale = 0f; LoseUI.SetActive(true); }
void Start() { /*_stateMachines.Reset(); * _stateMachines.RegisterHandler();*/ _state = States.Begin; Time.timeScale = 0; StartUI.SetActive(true); LoseUI.SetActive(false); score.SetActive(false); }
private void GameOver() { LoseUI.SetActive(true); Time.timeScale = 0; }
public void PlayerLose() { LoseUI.SetActive(true); SoundManager.instance.RandomizeSfx(loseSound); }