public void EndGame(float newScore) { GameIsRunning = false; Instantiate (scoreScreen); Highscore(newScore); menuScreen.SetActive(true); }