private void gameOver() { Time.timeScale = 0; StopAllCoroutines(); if (score > PlayerPrefs.GetInt("goUp")) { PlayerPrefs.SetInt("goUp", score); best = score; } ui.showInEnd(score, best); }
private void gameOver() { Time.timeScale = 0; StopAllCoroutines(); if (score > PlayerPrefs.GetInt("goUp")) { PlayerPrefs.SetInt("goUp", score); best = score; } ui.showInEnd(score, best); }