Commit 7849c9ac authored by Cody A Burchett's avatar Cody A Burchett

double jump fix

parent 6524aba3
......@@ -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