Commit f4e923ad by Philipp Adolf

Always play dash animation

parent 0b0e1c7e
......@@ -82,9 +82,6 @@ public class PlayerControl : MonoBehaviour
other.setPushSpeed(currentDashDirection * pushForce);
lastDashStart = Time.time - dashCompletionTime;
currentDashCoolDown = dashCollisionCoolDown;
//dash effect:
dashAnimator.SetTrigger("play");
}
private void setPushSpeed(Vector2 pushSpeed)
......@@ -106,6 +103,9 @@ public class PlayerControl : MonoBehaviour
currentDashDirection = dashDirection;
currentDashCoolDown = dashCoolDown;
hasLandedSinceLastDash = false;
//dash effect:
dashAnimator.SetTrigger("play");
}
if (isDashing())
......
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