コード例 #1
0
 public void Run()
 {
     _runMultiplier = runMultiplier;
     if (updateAnimator)
     {
         animator.SprintState(true);
     }
 }
コード例 #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);
            }
        }