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