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
5b9fae35
Unverified
Commit
5b9fae35
authored
Oct 29, 2016
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Main: Fix position of score text
parent
5b837f5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Main.unity
Assets/Scenes/Main.unity
+0
-0
UIController.cs
Assets/Scripts/UIController.cs
+2
-2
No files found.
Assets/Scenes/Main.unity
View file @
5b9fae35
No preview for this file type
Assets/Scripts/UIController.cs
View file @
5b9fae35
...
@@ -23,7 +23,7 @@ public class UIController : MonoBehaviour
...
@@ -23,7 +23,7 @@ public class UIController : MonoBehaviour
void
Start
()
void
Start
()
{
{
_player
=
GameObject
.
FindWithTag
(
"Player"
).
GetComponent
<
Player
>();
_player
=
GameObject
.
FindWithTag
(
"Player"
).
GetComponent
<
Player
>();
HighScore
.
enabled
=
false
;
HighScore
.
text
=
" "
;
// Keep position of elements, even when not displaying this one
_oldHs
=
PlayerPrefs
.
GetInt
(
"highscore"
);
_oldHs
=
PlayerPrefs
.
GetInt
(
"highscore"
);
}
}
...
@@ -45,7 +45,7 @@ public class UIController : MonoBehaviour
...
@@ -45,7 +45,7 @@ public class UIController : MonoBehaviour
private
void
HandleScore
()
private
void
HandleScore
()
{
{
if
(
_oldHs
<
_player
.
Score
)
if
(
_oldHs
<
_player
.
Score
)
HighScore
.
enabled
=
true
;
HighScore
.
text
=
"New high score!"
;
}
}
private
void
HandlePowerUps
()
private
void
HandlePowerUps
()
...
...
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