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
39efdf32
Unverified
Commit
39efdf32
authored
Oct 29, 2016
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Game: Reset speed on play again
parent
a4922769
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
GameController.cs
Assets/Scripts/GameController.cs
+2
-1
GameOver.cs
Assets/Scripts/GameOver.cs
+1
-0
UIController.cs
Assets/Scripts/UIController.cs
+0
-1
No files found.
Assets/Scripts/GameController.cs
View file @
39efdf32
...
...
@@ -8,7 +8,8 @@ namespace Assets.Scripts
public
class
GameController
:
MonoBehaviour
{
public
static
int
PoolSize
=
256
;
public
static
float
Speed
=
4f
;
public
static
float
InitialSpeed
=
4f
;
public
static
float
Speed
=
InitialSpeed
;
public
GameObject
Wall
;
public
GameObject
BG
;
...
...
Assets/Scripts/GameOver.cs
View file @
39efdf32
...
...
@@ -34,6 +34,7 @@ public class GameOver : MonoBehaviour
public
void
OnButtonPlayClicked
()
{
GameController
.
Speed
=
GameController
.
InitialSpeed
;
SceneManager
.
LoadScene
(
"Main"
);
}
...
...
Assets/Scripts/UIController.cs
View file @
39efdf32
...
...
@@ -55,6 +55,5 @@ public class UIController : MonoBehaviour
private
void
DisplayBattery
()
{
Battery
.
sprite
=
BatteryImages
[
_player
.
Battery
/
8
];
Progression
.
sprite
=
ProgressionSprites
[
_player
.
Progression
/
5
];
}
}
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