public void Dash() { if (dashCooldown || dashing || parrying) { return; } fc.PlaySwing(); InterruptAttack(); SetInvincible(true); if (DAMAGE_DASH) { anim.SetTrigger("damageDash"); } anim.SetTrigger("dash"); dashing = true; Freeze(); //preserve horizontal velocity but cancel falling preDashVelocity = new Vector2(rb2d.velocity.x, 0); }