void Update() { ScoreText.text = "Score: " + score; highScoreText.text = highscore.ToString(); if (score > highscore) { highscore = score; HighestScoreJson.SaveHighestScore(highscore); } }
void Start() { highscore = HighestScoreJson.GetHighestScore().highestScore; }