Example #1
0
 void Update()
 {
     if (currentHealth <= 0)
     {
         Stats.deaths++;
         Stats.Tdeaths++;
         LevelEnd.reset();
         SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
     }
 }