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