Input Manager
Presented via IInputManager interface, this small but useful system provides you with information about player inputs.
[Inject] private IInputManager inputManager;Available methods
Vector3 GetMovementDirection()Vector3 movementDir = inputManager.GetMovementDirection();
characterController.Move(moveSpeed * Time.deltaTime * cameraController.GetWorldDirection(movementDir));void AddKeyListener(KeyCode key, UnityAction keyDownCallback, UnityAction keyUpCallback)inputManager.AddKeyListener(KeyCode.Space, Jump, null);void RemoveKeyListener(KeyCode key, UnityAction keyDownCallback, UnityAction keyUpCallback)Last updated