diff --git a/Assets/Scripts/HighScores.cs b/Assets/Scripts/HighScores.cs index c996e3d..4b42b70 100644 --- a/Assets/Scripts/HighScores.cs +++ b/Assets/Scripts/HighScores.cs @@ -32,12 +32,16 @@ public class HighScores : MonoBehaviour { if (Server.Scores.scores.Length > 0) { for (int i = 0; i < highScores.Length; i++) { + int position = i + 1; + string positionText = position + (position == 1 ? "st" : + position == 2 ? "nd" : + position == 3 ? "rd" : "th"); Score score = highScores [i]; string name = score.playerName; if (score.team != null && score.team.Length > 0) { name += " (" + score.team + ")"; } - ScoreText.text += WWW.UnEscapeURL(name) + ": " + score.score + " points\n"; + ScoreText.text += positionText + " " + WWW.UnEscapeURL(name) + ": " + score.score + " points\n"; } } else { ScoreText.text = "No high-score yet... Play a game and show you are the best!";