private void Move(Vector2 direction) { if (!CanMove) { return; } applyingForce = true; animController?.SetRunning(true); AdjustVelocity(direction); FaceDirection(direction); OnRunStateChanged?.Invoke(true); }
public void SlowDown() { applyingForce = false; OnRunStateChanged?.Invoke(false); }