private IEnumerator GameOverDelay() { Player.instance.dead = true; yield return(new WaitForSeconds(0.7f)); Highscore.AddNewHighscore(GetComponent <WearingPaca>().totalScore); UnityEngine.SceneManagement.SceneManager.LoadScene("GameOver"); }
private IEnumerator GameOverDelay() { Player.instance.dead = true; yield return(new WaitForSeconds(0.7f)); Highscore.AddNewHighscore(GetComponent <WearingPaca>().totalScore); UnityEngine.SceneManagement.SceneManager.LoadScene("GameOver"); }