Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dyingIsMainstream
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gamejam-gpn15
dyingIsMainstream
Commits
ddc27904
Commit
ddc27904
authored
Jun 05, 2015
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent players from unintentionally dashing
This fixes
#4
parent
c1783b3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
PlayerControl.cs
Assets/Scripts/PlayerControl.cs
+4
-0
No files found.
Assets/Scripts/PlayerControl.cs
View file @
ddc27904
...
...
@@ -66,6 +66,10 @@ public class PlayerControl : MonoBehaviour
//in der szene muss fuer jeden spieer so ein InputMapping"nr" sein:
inputMapping
=
GameObject
.
Find
(
"InputMapping"
+
playerNumber
).
GetComponent
<
PlayerInputMapping
>();
GetComponent
<
PlayerHealth
>().
init
(
playerNumber
);
// prevent players from dashing due to pressing the dash button to start the game
lastDashStart
=
Time
.
time
-
dashCompletionTime
;
currentDashCoolDown
=
0.25f
;
}
void
OnCollisionEnter2D
(
Collision2D
coll
)
...
...
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