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
635bc5c4
Unverified
Commit
635bc5c4
authored
Oct 29, 2016
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Game: Reset speed on game start, not only on play again
parent
3671c4b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
GameOver.cs
Assets/Scripts/GameOver.cs
+0
-1
UIController.cs
Assets/Scripts/UIController.cs
+1
-0
No files found.
Assets/Scripts/GameOver.cs
View file @
635bc5c4
...
...
@@ -37,7 +37,6 @@ public class GameOver : MonoBehaviour
public
void
OnButtonPlayClicked
()
{
GameController
.
Speed
=
GameController
.
InitialSpeed
;
SceneManager
.
LoadScene
(
"Main"
);
}
...
...
Assets/Scripts/UIController.cs
View file @
635bc5c4
...
...
@@ -22,6 +22,7 @@ public class UIController : MonoBehaviour
void
Start
()
{
GameController
.
Speed
=
GameController
.
InitialSpeed
;
_player
=
GameObject
.
FindWithTag
(
"Player"
).
GetComponent
<
Player
>();
HighScore
.
text
=
" "
;
// Keep position of elements, even when not displaying this one
_oldHs
=
PlayerPrefs
.
GetInt
(
"highscore"
);
...
...
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