// Start is called before the first frame update void Start() { int[] scores = fileIO.GetScores(); int rank = fileIO.scoreIndex(RuntimeData.myScore); for (int i = 0; i < scores.Length; i++) { if (i == rank) { scoreString += "*"; } scoreString += ((i + 1).ToString() + ": "); scoreString += scores[i].ToString(); if (i == rank) { scoreString += "*"; } scoreString += "\n"; } scoreText.text = scoreString; }
// Start is called before the first frame update void Start() { scoreText.text = ("High Score: " + fileIO.GetScores()[0].ToString()); }