public void OnDirectionAttackButton(InputAction.CallbackContext context) { var direction = Gamepad.current.leftStick.ReadValue().normalized; DirectionalAttack?.Invoke(direction); }
public void OnDirectionalAttack(InputAction.CallbackContext context) { var direction = context.ReadValue <Vector2>().normalized; DirectionalAttack?.Invoke(direction); }