void GameWon() { //Player wins! gameover = gamewon = true; gameWonPanel.gameObject.SetActive(true); //check if the score made it to the top ten OneScoreFromTopTen newScore = score.GetAsOneScore(player.Shots, pers.settingsOfTheGame.difficultyMode); if (pers.settingsOfTheGame.CheckIfInTopTen(newScore)) { //show user name input nameEntryDialog.SetActive(true); } }