Commit f4e923ad by Philipp Adolf

Always play dash animation

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