// Start is called before the first frame update void Start() { TMPro.TextMeshProUGUI text = GetComponent <TMPro.TextMeshProUGUI>(); PlayerScore displayScore = ScoreSerializer.LoadHighScore(); text.text = "Last played score: " + displayScore.points; }
///<summary> ///Handles end of a run. ///</summary> private void GameOver() { //Serialize score maybe? ScoreSerializer.SaveHighScore(Score); Score = null; SceneManager.LoadScene("MainMenuScene"); //TODO: Return to main menu. }