IEnumerator Lose() { SceneTransition.TransitionIn(); yield return(new WaitForSeconds(1f)); SceneManager.LoadScene("LoserScene"); }
IEnumerator StartGame() { SceneTransition.TransitionIn(); yield return(new WaitForSeconds(1f)); GameObject.Find("DontDestroyOnLoad").GetComponent <ScoreLevelScript>().ResetScore(); SceneManager.LoadScene("GameScene", LoadSceneMode.Single); }