public void Run() { _runMultiplier = runMultiplier; if (updateAnimator) { animator.SprintState(true); } }
public void Run() { if (!physicsObject.isGrounded) { return; } // ReSharper disable once CompareOfFloatsByEqualityOperator if (_inputVelocity != 0) { physicsObject.targetVelocity.x = _inputVelocity * runSpeed; } physicsObject.isRunning = true; if (updateAnimator) { animator.SprintState(true); } }