Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igem-quantifly
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
igem-quantifly
Commits
d44c82cb
Unverified
Commit
d44c82cb
authored
Oct 29, 2016
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Score: Better display of individual scores
parent
74e938b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
HighScores.cs
Assets/Scripts/HighScores.cs
+6
-1
No files found.
Assets/Scripts/HighScores.cs
View file @
d44c82cb
...
...
@@ -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!"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment