private void GameWin() { var bestScore = PlayerPrefs.GetFloat("Score"); isGo = false; if (score > bestScore) { bestScore = score; PlayerPrefs.SetFloat("Score", bestScore); } winPanel.Init("You Win!", score, bestScore); }