예제 #1
0
    private void FixedUpdate()
    {
        Vector3 direction = new Vector3(inputController.MovementHorizontal() * speed, 0, inputController.MovementVertical() * speed);

        mouseInput.x = Mathf.Lerp(mouseInput.x, inputController.CameraHorizontal(), mouseControl.damping.x);
        moveController.Move(transform.TransformDirection(direction), characterController);
        moveController.CameraControl(transform, mouseControl.sensitivity.x, mouseInput.x);
        animationController.ControlAnimator(animator, inputController.MovementVertical(), inputController.MovementHorizontal(), inputController.CameraVertical());
    }