//Called when the TimerController runs out public void TimeOut() { if (scoreController.GetScore() > 0) { ScoreboardControllerScript.NewScore(scoreController.GetScore()); } SceneManager.LoadScene("ScoreScene"); }
void LoadScores() { var x = ScoreboardControllerScript.GetScores(); string separator = " "; scoreText.text = "Date" + separator + "Score"; foreach (var item in x) { scoreText.text += "\n" + item.Item1.ToString("g") + separator + item.Item2; } }
public void ClearData() { //ScoreboardControllerScript.NewScore(1); ScoreboardControllerScript.ClearScores(); LoadScores(); }