Can someone please help clarify - if I am using the Player Input component are these OnEnable and OnDisable still necessary or is the Player Input basically taking care of it now?
private void OnEnable()
{
_inputActions.Enable();
_inputActions.Player.Interact.performed += OnInteractButton;
}
private void OnDisable()
{
_inputActions.Player.Interact.performed -= OnInteractButton;
_inputActions.Disable();
}
Presumably the Movement InputAction is similar to this interact script below and this is all I need for the Player Input above to work
public void OnInteractButton(InputAction.CallbackContext context)
{
//Do whatever interaction
}
[/ICODE]
Thanks