Esempio n. 1
0
 public void Run()
 {
     _runMultiplier = runMultiplier;
     if (updateAnimator)
     {
         animator.SprintState(true);
     }
 }
Esempio n. 2
0
        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);
            }
        }