示例#1
0
    public IEnumerator DieCoroutine()
    {
        yield return(new WaitForSeconds(waitAfterDeath));

        MusicController.Instance.UnpauseMusic();
        GoToSceneController.GoToScene(SceneManager.GetActiveScene().name);
    }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         GoToSceneController.GoToScene(firstScene);
     }
 }
示例#3
0
 public virtual void PlayAgain()
 {
     GoToSceneController.GoToScene(SceneManager.GetActiveScene().name);
 }