public IEnumerator DieCoroutine() { yield return(new WaitForSeconds(waitAfterDeath)); MusicController.Instance.UnpauseMusic(); GoToSceneController.GoToScene(SceneManager.GetActiveScene().name); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { GoToSceneController.GoToScene(firstScene); } }
public virtual void PlayAgain() { GoToSceneController.GoToScene(SceneManager.GetActiveScene().name); }