Exemple #1
0
 public void KillPlayer()
 {
     if (LevelChangerObj != null)
     {
         LevelChanger levelChanger = LevelChangerObj.GetComponent(typeof(LevelChanger)) as LevelChanger;
         levelChanger.FadeToSameLevel();
     }
     else
     {
         SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     }
 }