Example #1
0
 void Awake()
 {
     highscoreDisplay = GetComponent <displayHighscores> ();
     instance         = this;
     highscore        = PlayerPrefs.GetInt("Highscore", highscore);
     AddNewHighscore(usernameReal, highscore);
 }
Example #2
0
 void Awake()
 {
     usernameReal     = PlayerPrefs.GetString("usernameReal");
     highscore        = (int)PlayerPrefs.GetFloat("highscore");
     instance         = this;
     highscoreDisplay = GetComponent <displayHighscores> ();
     AddNewHighscore(usernameReal, highscore);
 }