void Start() { myScore = PlayerPrefs.GetInt("scoreBest"); if (myScore < ScoreGame.instance.myScore) { PlayerPrefs.SetInt("scoreBest", ScoreGame.instance.myScore); } scoreBest.DisplayScore(PlayerPrefs.GetInt("scoreBest")); }
public void UpScore(int newScore) { myScore += newScore; myyScore.DisplayScore(myScore); }
void Start() { instance = this; myyScore = GetComponent <ScoreBase> (); myyScore.DisplayScore(myScore); }
void Start() { scoreBest = GetComponent <ScoreBase>(); scoreBest.DisplayScore(ScoreGame.instance.myScore); }