private void Start() { currentState = STATEGAME.GETREADY; Time.timeScale = 1; gameOver.SetActive(false); getReady.SetActive(true); }
IEnumerator ChangeStatuToPlaying() { yield return(new WaitForSeconds(1)); currentState = STATEGAME.PLAYING; bird.gameObject.SetActive(true); getReady.SetActive(false); }
internal void DoGameOver() { soundManager.SoundHit(); gameOver.SetActive(true); Time.timeScale = 0; PlaySoundFall(); if (scoreManager.getCurrentScore() > scoreManager.getBestScore()) { scoreManager.SaveNewBestScore(); } gameOverManager.SetResult(scoreManager.getCurrentScore(), scoreManager.getBestScore()); scoreManager.SetEnableScore(false); currentState = STATEGAME.GAMEOVER; }