//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.7.0 // from Assets/PlayerControls.inputactions // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public partial class @PlayerControls: IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @PlayerControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""PlayerControls"", ""maps"": [ { ""name"": ""Gameplay"", ""id"": ""34d14788-6775-40b7-a5e3-29a48e9fb898"", ""actions"": [ { ""name"": ""Up"", ""type"": ""Button"", ""id"": ""29cd7fd5-6159-4f3f-b497-eef167d3246f"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Down"", ""type"": ""Button"", ""id"": ""3a8e38e6-f9a0-4754-9564-a85fc90a8e7e"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""b4924df1-3172-4242-933c-5365a384ad47"", ""expectedControlType"": ""Stick"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Rotate"", ""type"": ""Value"", ""id"": ""8c0a19d1-35e8-4f7d-b316-baa8daf7b9ba"", ""expectedControlType"": ""Stick"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""CameraRotationLeft"", ""type"": ""Button"", ""id"": ""0a116665-ac14-4194-80ba-70dacb67de9e"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""CameraRotationRight"", ""type"": ""Button"", ""id"": ""82f1ccc6-00c7-4370-97c3-d61b31f6bda9"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""resetCameraRotation"", ""type"": ""Button"", ""id"": ""bca2e0e1-f10e-423d-8cc3-f7e432a9aacd"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""resetCameraPosition"", ""type"": ""Button"", ""id"": ""ee6563ae-7904-4777-afa5-526170208649"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""eb4c779d-90f8-473d-8fce-66377956d57d"", ""path"": ""/rightTrigger"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Up"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fa1415c2-e45e-48d2-99e0-3e6b9adcfe76"", ""path"": ""/leftTrigger"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Down"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d2e9011c-2c7f-4e12-81db-de4e6c7d65d9"", ""path"": ""/leftStick"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""bbb3d1bc-06d4-41df-9458-a5bc31662586"", ""path"": ""/rightStick"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""70270423-9056-4a5f-b335-74461d13c272"", ""path"": ""/leftShoulder"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CameraRotationLeft"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""3595ee40-b5a7-41d3-b46b-d85cbbf0579d"", ""path"": ""/rightShoulder"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CameraRotationRight"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ac3a8d25-ab33-40a0-8654-580f9fde1bb2"", ""path"": ""/rightStickPress"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""resetCameraRotation"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4e29dc17-a971-4790-aaf3-61f130e1808c"", ""path"": ""/leftStickPress"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""resetCameraPosition"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""Keyboard"", ""id"": ""d1d13f5d-cc2c-41b4-bf98-a94c1da66ec4"", ""actions"": [ { ""name"": ""Up"", ""type"": ""Button"", ""id"": ""3bad37c0-698e-48c0-bca0-1887300c7b4e"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Down"", ""type"": ""Button"", ""id"": ""6936409f-598b-4068-b4ea-1a0c0c5a64f0"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""2cc8ef3d-9d44-4c5e-b0cc-946f0bee10f3"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Rotate"", ""type"": ""Value"", ""id"": ""04044668-ddd0-4c5a-befd-2919b2ef9a24"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""CameraRotationLeft"", ""type"": ""Button"", ""id"": ""3ecf28ce-f10f-46f6-b042-2257f251c796"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""CameraRotationRight"", ""type"": ""Button"", ""id"": ""fc4e86a0-5335-4e44-8865-381b8bb81494"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""resetCameraRotation"", ""type"": ""Button"", ""id"": ""02a70c2c-d05d-4422-8c2e-537c2f88e31a"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""resetCameraPosition"", ""type"": ""Button"", ""id"": ""1ce47bd0-af0a-45ad-9611-ae93948fc2ca"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""2f152022-0b7f-4b8d-b0a2-e3a9c9995293"", ""path"": ""/e"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Up"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f02a1f20-ef67-438a-861d-1922ebb0c543"", ""path"": ""/q"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Down"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""08ba3909-69fd-435e-b753-2a6a297af997"", ""path"": ""/u"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CameraRotationLeft"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""0cedf9a8-862b-44ad-9805-2ef6e94ace79"", ""path"": ""/o"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CameraRotationRight"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""7c92afda-eba1-486a-8a24-8dc1154f65b8"", ""path"": ""/f"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""resetCameraRotation"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""e11754bb-3de5-4201-a5cf-219f479be62b"", ""path"": ""/r"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""resetCameraPosition"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""2D Vector"", ""id"": ""1b1a2df7-7506-49b1-8e24-c504780625f1"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""46f3d938-8b8b-4020-aa70-96309e0b081d"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""15719f55-d175-45a0-9b13-e658aa86beca"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""c0bde04a-d4d2-41be-8c91-55b6ed993c87"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""6d50caf9-5e92-4373-9b2b-bf0ff7f63055"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""80c2fd5d-95e1-4a32-bccb-4d3a41256de6"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""cb33b76d-b4d0-4d95-9ff7-1020a8cad99c"", ""path"": ""/i"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""61cad153-4798-46a6-9457-b88e48682da5"", ""path"": ""/k"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""fd712bc4-3cb7-4014-abaf-496ed5f1981d"", ""path"": ""/j"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""8b4756cc-966a-469d-97f3-f564f1d9a727"", ""path"": ""/l"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true } ] } ], ""controlSchemes"": [] }"); // Gameplay m_Gameplay = asset.FindActionMap("Gameplay", throwIfNotFound: true); m_Gameplay_Up = m_Gameplay.FindAction("Up", throwIfNotFound: true); m_Gameplay_Down = m_Gameplay.FindAction("Down", throwIfNotFound: true); m_Gameplay_Move = m_Gameplay.FindAction("Move", throwIfNotFound: true); m_Gameplay_Rotate = m_Gameplay.FindAction("Rotate", throwIfNotFound: true); m_Gameplay_CameraRotationLeft = m_Gameplay.FindAction("CameraRotationLeft", throwIfNotFound: true); m_Gameplay_CameraRotationRight = m_Gameplay.FindAction("CameraRotationRight", throwIfNotFound: true); m_Gameplay_resetCameraRotation = m_Gameplay.FindAction("resetCameraRotation", throwIfNotFound: true); m_Gameplay_resetCameraPosition = m_Gameplay.FindAction("resetCameraPosition", throwIfNotFound: true); // Keyboard m_Keyboard = asset.FindActionMap("Keyboard", throwIfNotFound: true); m_Keyboard_Up = m_Keyboard.FindAction("Up", throwIfNotFound: true); m_Keyboard_Down = m_Keyboard.FindAction("Down", throwIfNotFound: true); m_Keyboard_Move = m_Keyboard.FindAction("Move", throwIfNotFound: true); m_Keyboard_Rotate = m_Keyboard.FindAction("Rotate", throwIfNotFound: true); m_Keyboard_CameraRotationLeft = m_Keyboard.FindAction("CameraRotationLeft", throwIfNotFound: true); m_Keyboard_CameraRotationRight = m_Keyboard.FindAction("CameraRotationRight", throwIfNotFound: true); m_Keyboard_resetCameraRotation = m_Keyboard.FindAction("resetCameraRotation", throwIfNotFound: true); m_Keyboard_resetCameraPosition = m_Keyboard.FindAction("resetCameraPosition", throwIfNotFound: true); } public void Dispose() { UnityEngine.Object.Destroy(asset); } public InputBinding? bindingMask { get => asset.bindingMask; set => asset.bindingMask = value; } public ReadOnlyArray? devices { get => asset.devices; set => asset.devices = value; } public ReadOnlyArray controlSchemes => asset.controlSchemes; public bool Contains(InputAction action) { return asset.Contains(action); } public IEnumerator GetEnumerator() { return asset.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public void Enable() { asset.Enable(); } public void Disable() { asset.Disable(); } public IEnumerable bindings => asset.bindings; public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) { return asset.FindAction(actionNameOrId, throwIfNotFound); } public int FindBinding(InputBinding bindingMask, out InputAction action) { return asset.FindBinding(bindingMask, out action); } // Gameplay private readonly InputActionMap m_Gameplay; private List m_GameplayActionsCallbackInterfaces = new List(); private readonly InputAction m_Gameplay_Up; private readonly InputAction m_Gameplay_Down; private readonly InputAction m_Gameplay_Move; private readonly InputAction m_Gameplay_Rotate; private readonly InputAction m_Gameplay_CameraRotationLeft; private readonly InputAction m_Gameplay_CameraRotationRight; private readonly InputAction m_Gameplay_resetCameraRotation; private readonly InputAction m_Gameplay_resetCameraPosition; public struct GameplayActions { private @PlayerControls m_Wrapper; public GameplayActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @Up => m_Wrapper.m_Gameplay_Up; public InputAction @Down => m_Wrapper.m_Gameplay_Down; public InputAction @Move => m_Wrapper.m_Gameplay_Move; public InputAction @Rotate => m_Wrapper.m_Gameplay_Rotate; public InputAction @CameraRotationLeft => m_Wrapper.m_Gameplay_CameraRotationLeft; public InputAction @CameraRotationRight => m_Wrapper.m_Gameplay_CameraRotationRight; public InputAction @resetCameraRotation => m_Wrapper.m_Gameplay_resetCameraRotation; public InputAction @resetCameraPosition => m_Wrapper.m_Gameplay_resetCameraPosition; public InputActionMap Get() { return m_Wrapper.m_Gameplay; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(GameplayActions set) { return set.Get(); } public void AddCallbacks(IGameplayActions instance) { if (instance == null || m_Wrapper.m_GameplayActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_GameplayActionsCallbackInterfaces.Add(instance); @Up.started += instance.OnUp; @Up.performed += instance.OnUp; @Up.canceled += instance.OnUp; @Down.started += instance.OnDown; @Down.performed += instance.OnDown; @Down.canceled += instance.OnDown; @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; @CameraRotationLeft.started += instance.OnCameraRotationLeft; @CameraRotationLeft.performed += instance.OnCameraRotationLeft; @CameraRotationLeft.canceled += instance.OnCameraRotationLeft; @CameraRotationRight.started += instance.OnCameraRotationRight; @CameraRotationRight.performed += instance.OnCameraRotationRight; @CameraRotationRight.canceled += instance.OnCameraRotationRight; @resetCameraRotation.started += instance.OnResetCameraRotation; @resetCameraRotation.performed += instance.OnResetCameraRotation; @resetCameraRotation.canceled += instance.OnResetCameraRotation; @resetCameraPosition.started += instance.OnResetCameraPosition; @resetCameraPosition.performed += instance.OnResetCameraPosition; @resetCameraPosition.canceled += instance.OnResetCameraPosition; } private void UnregisterCallbacks(IGameplayActions instance) { @Up.started -= instance.OnUp; @Up.performed -= instance.OnUp; @Up.canceled -= instance.OnUp; @Down.started -= instance.OnDown; @Down.performed -= instance.OnDown; @Down.canceled -= instance.OnDown; @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Rotate.started -= instance.OnRotate; @Rotate.performed -= instance.OnRotate; @Rotate.canceled -= instance.OnRotate; @CameraRotationLeft.started -= instance.OnCameraRotationLeft; @CameraRotationLeft.performed -= instance.OnCameraRotationLeft; @CameraRotationLeft.canceled -= instance.OnCameraRotationLeft; @CameraRotationRight.started -= instance.OnCameraRotationRight; @CameraRotationRight.performed -= instance.OnCameraRotationRight; @CameraRotationRight.canceled -= instance.OnCameraRotationRight; @resetCameraRotation.started -= instance.OnResetCameraRotation; @resetCameraRotation.performed -= instance.OnResetCameraRotation; @resetCameraRotation.canceled -= instance.OnResetCameraRotation; @resetCameraPosition.started -= instance.OnResetCameraPosition; @resetCameraPosition.performed -= instance.OnResetCameraPosition; @resetCameraPosition.canceled -= instance.OnResetCameraPosition; } public void RemoveCallbacks(IGameplayActions instance) { if (m_Wrapper.m_GameplayActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IGameplayActions instance) { foreach (var item in m_Wrapper.m_GameplayActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_GameplayActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public GameplayActions @Gameplay => new GameplayActions(this); // Keyboard private readonly InputActionMap m_Keyboard; private List m_KeyboardActionsCallbackInterfaces = new List(); private readonly InputAction m_Keyboard_Up; private readonly InputAction m_Keyboard_Down; private readonly InputAction m_Keyboard_Move; private readonly InputAction m_Keyboard_Rotate; private readonly InputAction m_Keyboard_CameraRotationLeft; private readonly InputAction m_Keyboard_CameraRotationRight; private readonly InputAction m_Keyboard_resetCameraRotation; private readonly InputAction m_Keyboard_resetCameraPosition; public struct KeyboardActions { private @PlayerControls m_Wrapper; public KeyboardActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @Up => m_Wrapper.m_Keyboard_Up; public InputAction @Down => m_Wrapper.m_Keyboard_Down; public InputAction @Move => m_Wrapper.m_Keyboard_Move; public InputAction @Rotate => m_Wrapper.m_Keyboard_Rotate; public InputAction @CameraRotationLeft => m_Wrapper.m_Keyboard_CameraRotationLeft; public InputAction @CameraRotationRight => m_Wrapper.m_Keyboard_CameraRotationRight; public InputAction @resetCameraRotation => m_Wrapper.m_Keyboard_resetCameraRotation; public InputAction @resetCameraPosition => m_Wrapper.m_Keyboard_resetCameraPosition; public InputActionMap Get() { return m_Wrapper.m_Keyboard; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(KeyboardActions set) { return set.Get(); } public void AddCallbacks(IKeyboardActions instance) { if (instance == null || m_Wrapper.m_KeyboardActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_KeyboardActionsCallbackInterfaces.Add(instance); @Up.started += instance.OnUp; @Up.performed += instance.OnUp; @Up.canceled += instance.OnUp; @Down.started += instance.OnDown; @Down.performed += instance.OnDown; @Down.canceled += instance.OnDown; @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; @CameraRotationLeft.started += instance.OnCameraRotationLeft; @CameraRotationLeft.performed += instance.OnCameraRotationLeft; @CameraRotationLeft.canceled += instance.OnCameraRotationLeft; @CameraRotationRight.started += instance.OnCameraRotationRight; @CameraRotationRight.performed += instance.OnCameraRotationRight; @CameraRotationRight.canceled += instance.OnCameraRotationRight; @resetCameraRotation.started += instance.OnResetCameraRotation; @resetCameraRotation.performed += instance.OnResetCameraRotation; @resetCameraRotation.canceled += instance.OnResetCameraRotation; @resetCameraPosition.started += instance.OnResetCameraPosition; @resetCameraPosition.performed += instance.OnResetCameraPosition; @resetCameraPosition.canceled += instance.OnResetCameraPosition; } private void UnregisterCallbacks(IKeyboardActions instance) { @Up.started -= instance.OnUp; @Up.performed -= instance.OnUp; @Up.canceled -= instance.OnUp; @Down.started -= instance.OnDown; @Down.performed -= instance.OnDown; @Down.canceled -= instance.OnDown; @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Rotate.started -= instance.OnRotate; @Rotate.performed -= instance.OnRotate; @Rotate.canceled -= instance.OnRotate; @CameraRotationLeft.started -= instance.OnCameraRotationLeft; @CameraRotationLeft.performed -= instance.OnCameraRotationLeft; @CameraRotationLeft.canceled -= instance.OnCameraRotationLeft; @CameraRotationRight.started -= instance.OnCameraRotationRight; @CameraRotationRight.performed -= instance.OnCameraRotationRight; @CameraRotationRight.canceled -= instance.OnCameraRotationRight; @resetCameraRotation.started -= instance.OnResetCameraRotation; @resetCameraRotation.performed -= instance.OnResetCameraRotation; @resetCameraRotation.canceled -= instance.OnResetCameraRotation; @resetCameraPosition.started -= instance.OnResetCameraPosition; @resetCameraPosition.performed -= instance.OnResetCameraPosition; @resetCameraPosition.canceled -= instance.OnResetCameraPosition; } public void RemoveCallbacks(IKeyboardActions instance) { if (m_Wrapper.m_KeyboardActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IKeyboardActions instance) { foreach (var item in m_Wrapper.m_KeyboardActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_KeyboardActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public KeyboardActions @Keyboard => new KeyboardActions(this); public interface IGameplayActions { void OnUp(InputAction.CallbackContext context); void OnDown(InputAction.CallbackContext context); void OnMove(InputAction.CallbackContext context); void OnRotate(InputAction.CallbackContext context); void OnCameraRotationLeft(InputAction.CallbackContext context); void OnCameraRotationRight(InputAction.CallbackContext context); void OnResetCameraRotation(InputAction.CallbackContext context); void OnResetCameraPosition(InputAction.CallbackContext context); } public interface IKeyboardActions { void OnUp(InputAction.CallbackContext context); void OnDown(InputAction.CallbackContext context); void OnMove(InputAction.CallbackContext context); void OnRotate(InputAction.CallbackContext context); void OnCameraRotationLeft(InputAction.CallbackContext context); void OnCameraRotationRight(InputAction.CallbackContext context); void OnResetCameraRotation(InputAction.CallbackContext context); void OnResetCameraPosition(InputAction.CallbackContext context); } }