예제 #1
0
        private void Update()
        {
            float delta = Time.deltaTime;

            isInteracting = _animator.GetBool("isInteracting");

            isSprinting = _inputHandler.b_Input;
            _inputHandler.TickInput(delta);
            _playerLocomotion.HandleMovement(delta);
            _playerLocomotion.HandleRollingAndSprinting(delta);
            _playerLocomotion.HandleFalling(delta, _playerLocomotion.moveDirection);

            if (_cameraHandler != null)
            {
                _cameraHandler.FollowTarget(delta);
                _cameraHandler.HandleCameraRotation(delta, _inputHandler.mouseX, _inputHandler.mouseY);
            }
        }