Пример #1
0
    void Start()
    {
        myScore = PlayerPrefs.GetInt("scoreBest");

        if (myScore < ScoreGame.instance.myScore)
        {
            PlayerPrefs.SetInt("scoreBest", ScoreGame.instance.myScore);
        }

        scoreBest.DisplayScore(PlayerPrefs.GetInt("scoreBest"));
    }
Пример #2
0
 public void UpScore(int newScore)
 {
     myScore += newScore;
     myyScore.DisplayScore(myScore);
 }
Пример #3
0
 void Start()
 {
     instance = this;
     myyScore = GetComponent <ScoreBase> ();
     myyScore.DisplayScore(myScore);
 }
Пример #4
0
 void Start()
 {
     scoreBest = GetComponent <ScoreBase>();
     scoreBest.DisplayScore(ScoreGame.instance.myScore);
 }