// Update is called once per frame void Update() { switch (textType) { case TextType.HighestScore: if (saveScript.CheckHighestScore() <= 0) { txt.text = "Play the game and you will see your highest score here!"; } else if (saveScript.CheckHighestScore() <= 279) { HighScoreInt = Mathf.RoundToInt(saveScript.CheckHighestScore()); txt.text = "Current Highest score: " + HighScoreInt.ToString() + "m"; } else if (saveScript.CheckHighestScore() >= 280) { txt.text = "Congrats! You have climbed up the 280m tall mountain!"; } break; } }