Ejemplo n.º 1
0
        public override void OnBeforeCharacterMoved()
        {
            UpdateControlRotation();
            PlayerCamera.SetControlRotation(_character.GetControlRotation());

            Vector3 movementInput = GetMovementInput();

            _character.SetMovementInput(movementInput);

            _character.SetJumpInput(_playerInput.JumpInput);
        }
Ejemplo n.º 2
0
 public override void OnCharacterLateUpdate()
 {
     _playerCamera.SetPosition(Character.transform.position);
     _playerCamera.SetControlRotation(Character.GetControlRotation());
 }