private void SneezeRecover() { movementState.Velocity = Vector2.zero; playerState = Player.PlayerState.Idle; sneezeDashSettings = DashSettings.Default; fireAction?.Enable(); aimAction?.Enable(); }
private void InitiateSneeze(DashSettings sneezeDashSettings, Vector2 input) { movementState.Velocity = Vector2.zero; Movement.Pulse(ref movementState, sneezeDashSettings.movementSettings, input); playerRigidbody.velocity = movementState.Velocity; playerState = Player.PlayerState.Sneezing; this.sneezeDashSettings = sneezeDashSettings; sneezeAnimation.Activate(); fireAction?.Disable(); aimAction?.Disable(); }