Example #1
0
        private void MoveToNextPivotPoint()
        {
            bool isJumping = PlayerMotor.IsJumping();

            SetBool(PlayerAnimBool.IsJumping, isJumping);
            if (isJumping)
            {
                _animator.speed = 1;
                if (_animator.GetBool(PlayerAnimBool.Forward))
                {
                    PlayerMotor.SetJumpingVelocity(true);
                }
                else
                {
                    PlayerMotor.SetJumpingVelocity(false);
                }
            }
            else
            {
                _animator.speed = PlayerMotor.MoveToNextPivotPoint();
            }
        }