public void HandleDeath() { //Sets the time scale to 0 Time.timeScale = 0; //Shows the death screen deathScreen.SetActive(true); //Shows the score the player ended with deathScreenScore.text = $"Score:\n\n{player.score}"; //Shows what wave you died on deathScreenWave.text = $"Wave:\n\n{WaveHandler.Instance().wave}"; }