Score: Better display of individual scores

parent 74e938b5
......@@ -41,7 +41,12 @@ public class HighScores : MonoBehaviour {
if (score.team != null && score.team.Length > 0) {
name += " (" + score.team + ")";
}
ScoreText.text += positionText + " " + WWW.UnEscapeURL(name) + ": " + score.score + " points\n";
string entryText = positionText + " " + WWW.UnEscapeURL (name) + ": " + score.score + " points\n";
if (position <= 3)
entryText = "<b><size=30>" + entryText + "</size></b>";
else if (position == 4)
entryText = "\n" + entryText;
ScoreText.text += entryText;
}
} else {
ScoreText.text = "No high-score yet... Play a game and show you are the best!";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment