Commit 29927019 authored by Andrew R Van Buren's avatar Andrew R Van Buren

Merge branch 'enemyHorizontal' into 'master'

double jump fix and enemy prefab fix

See merge request !40
parents 50259636 dace62b8
......@@ -36,7 +36,8 @@ public class Jump : AbstractBehavior {
}
void FixedUpdate() {
if (jumpRequested) {
Debug.Log(airJumpsMade);
if (jumpRequested) {
Activate();
jumpRequested = false;
}
......@@ -77,4 +78,8 @@ public class Jump : AbstractBehavior {
return Mathf.Sqrt(-2 * gravity * height);
}
void OnCollisionEnter2D(Collision2D other)
{
airJumpsMade = 0;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment