public void GameOver() { if (Score > BestScore) { BestScore = Score; } Score = 0; head.isActive = false; powerUpGenerator.StopGenerating(); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }