|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// <auto-generated>
|
|
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
|
|
// version 1.4.4
|
|
|
|
// from Assets/Inputs.inputactions
|
|
|
|
//
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
|
// the code is regenerated.
|
|
|
|
// </auto-generated>
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine.InputSystem;
|
|
|
|
using UnityEngine.InputSystem.Utilities;
|
|
|
|
|
|
|
|
public partial class @Inputs : IInputActionCollection2, IDisposable
|
|
|
|
{
|
|
|
|
public InputActionAsset asset { get; }
|
|
|
|
public @Inputs()
|
|
|
|
{
|
|
|
|
asset = InputActionAsset.FromJson(@"{
|
|
|
|
""name"": ""Inputs"",
|
|
|
|
""maps"": [
|
|
|
|
{
|
|
|
|
""name"": ""Movement"",
|
|
|
|
""id"": ""d8d47c0a-b662-400d-a385-35807c70320f"",
|
|
|
|
""actions"": [
|
|
|
|
{
|
|
|
|
""name"": ""wasd"",
|
|
|
|
""type"": ""Value"",
|
|
|
|
""id"": ""0b6cb4ea-7ff8-4923-b6ab-33d667c9ca70"",
|
|
|
|
""expectedControlType"": ""Vector2"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Jump"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""e80a18a4-dc07-4781-a2fb-d1339a1395e2"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Dash"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""69029b38-e024-4fc6-a3d3-0ec0fe6bde48"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Next weapon"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""0f70482d-054d-45ca-be81-c54e2deb922d"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Last weapon"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""838ac902-8907-4180-87a9-f03f438c9069"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""attack"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""d99967b7-1e06-448b-b920-422947e9c03e"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Aim"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""68ca889d-0737-4f91-8b04-2743619d9841"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Interact"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""317818b9-4681-4f6d-96a8-d846c883cdc7"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Mouse_Pos"",
|
|
|
|
""type"": ""Value"",
|
|
|
|
""id"": ""62187c88-60b3-4cdb-990b-3e434d79e2d0"",
|
|
|
|
""expectedControlType"": ""Vector2"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Eat"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""c0a3cd1e-8946-4ce6-80e8-2efe992809a7"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""Pause"",
|
|
|
|
""type"": ""Button"",
|
|
|
|
""id"": ""f130e6cf-9ecc-46b1-b37d-bf452dae29f0"",
|
|
|
|
""expectedControlType"": ""Button"",
|
|
|
|
""processors"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""initialStateCheck"": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
""bindings"": [
|
|
|
|
{
|
|
|
|
""name"": ""2D Vector"",
|
|
|
|
""id"": ""6c5c6ba8-c84f-4d14-ba76-681085988d36"",
|
|
|
|
""path"": ""2DVector"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""wasd"",
|
|
|
|
""isComposite"": true,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""up"",
|
|
|
|
""id"": ""a7ce409d-b8a9-40a8-82fb-36838e8027b3"",
|
|
|
|
""path"": ""<Keyboard>/w"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""wasd"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""down"",
|
|
|
|
""id"": ""d99c0c7a-1ef2-4abb-adc8-bf105d8d71e9"",
|
|
|
|
""path"": ""<Keyboard>/s"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""wasd"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""left"",
|
|
|
|
""id"": ""01b1a9c6-3b80-4b40-a597-e8bc579b9393"",
|
|
|
|
""path"": ""<Keyboard>/a"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""wasd"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": ""right"",
|
|
|
|
""id"": ""29c247ff-d21c-4ca8-bf9a-0906d54cc62d"",
|
|
|
|
""path"": ""<Keyboard>/d"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""wasd"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""264c79a3-0145-44a7-8e56-9c9664661d8d"",
|
|
|
|
""path"": ""<Keyboard>/space"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Jump"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""7aaca10d-6d18-4407-a143-93fd3f941a82"",
|
|
|
|
""path"": ""<Keyboard>/shift"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Dash"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""559884ac-6f23-4120-affe-c514ba57b47b"",
|
|
|
|
""path"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Next weapon"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""72bd1b1e-d6fe-416f-9e88-0c34f36eda52"",
|
|
|
|
""path"": """",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Last weapon"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""73cb1d56-f8d9-41bb-9639-8d72e45caac2"",
|
|
|
|
""path"": ""<Mouse>/leftButton"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""attack"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""5861b660-6b46-49ef-a31d-57336f405d75"",
|
|
|
|
""path"": ""<Keyboard>/e"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Interact"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""33bb5381-64d6-434f-91a7-4b7ef16e5dcd"",
|
|
|
|
""path"": ""<Mouse>/rightButton"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Aim"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""2804d0cd-53d7-4504-bede-102687c52e60"",
|
|
|
|
""path"": ""<Mouse>/position"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Mouse_Pos"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""5f2b2db3-f57a-4450-9657-8dac2df34b4d"",
|
|
|
|
""path"": ""<Keyboard>/1"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Eat"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
""name"": """",
|
|
|
|
""id"": ""81322c8b-dcdc-41da-a2af-8a9eb451461c"",
|
|
|
|
""path"": ""<Keyboard>/escape"",
|
|
|
|
""interactions"": """",
|
|
|
|
""processors"": """",
|
|
|
|
""groups"": """",
|
|
|
|
""action"": ""Pause"",
|
|
|
|
""isComposite"": false,
|
|
|
|
""isPartOfComposite"": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
""controlSchemes"": []
|
|
|
|
}");
|
|
|
|
// Movement
|
|
|
|
m_Movement = asset.FindActionMap("Movement", throwIfNotFound: true);
|
|
|
|
m_Movement_wasd = m_Movement.FindAction("wasd", throwIfNotFound: true);
|
|
|
|
m_Movement_Jump = m_Movement.FindAction("Jump", throwIfNotFound: true);
|
|
|
|
m_Movement_Dash = m_Movement.FindAction("Dash", throwIfNotFound: true);
|
|
|
|
m_Movement_Nextweapon = m_Movement.FindAction("Next weapon", throwIfNotFound: true);
|
|
|
|
m_Movement_Lastweapon = m_Movement.FindAction("Last weapon", throwIfNotFound: true);
|
|
|
|
m_Movement_attack = m_Movement.FindAction("attack", throwIfNotFound: true);
|
|
|
|
m_Movement_Aim = m_Movement.FindAction("Aim", throwIfNotFound: true);
|
|
|
|
m_Movement_Interact = m_Movement.FindAction("Interact", throwIfNotFound: true);
|
|
|
|
m_Movement_Mouse_Pos = m_Movement.FindAction("Mouse_Pos", throwIfNotFound: true);
|
|
|
|
m_Movement_Eat = m_Movement.FindAction("Eat", throwIfNotFound: true);
|
|
|
|
m_Movement_Pause = m_Movement.FindAction("Pause", throwIfNotFound: true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
UnityEngine.Object.Destroy(asset);
|
|
|
|
}
|
|
|
|
|
|
|
|
public InputBinding? bindingMask
|
|
|
|
{
|
|
|
|
get => asset.bindingMask;
|
|
|
|
set => asset.bindingMask = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ReadOnlyArray<InputDevice>? devices
|
|
|
|
{
|
|
|
|
get => asset.devices;
|
|
|
|
set => asset.devices = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
|
|
|
|
|
|
|
|
public bool Contains(InputAction action)
|
|
|
|
{
|
|
|
|
return asset.Contains(action);
|
|
|
|
}
|
|
|
|
|
|
|
|
public IEnumerator<InputAction> GetEnumerator()
|
|
|
|
{
|
|
|
|
return asset.GetEnumerator();
|
|
|
|
}
|
|
|
|
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
|
|
{
|
|
|
|
return GetEnumerator();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Enable()
|
|
|
|
{
|
|
|
|
asset.Enable();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Disable()
|
|
|
|
{
|
|
|
|
asset.Disable();
|
|
|
|
}
|
|
|
|
public IEnumerable<InputBinding> 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Movement
|
|
|
|
private readonly InputActionMap m_Movement;
|
|
|
|
private IMovementActions m_MovementActionsCallbackInterface;
|
|
|
|
private readonly InputAction m_Movement_wasd;
|
|
|
|
private readonly InputAction m_Movement_Jump;
|
|
|
|
private readonly InputAction m_Movement_Dash;
|
|
|
|
private readonly InputAction m_Movement_Nextweapon;
|
|
|
|
private readonly InputAction m_Movement_Lastweapon;
|
|
|
|
private readonly InputAction m_Movement_attack;
|
|
|
|
private readonly InputAction m_Movement_Aim;
|
|
|
|
private readonly InputAction m_Movement_Interact;
|
|
|
|
private readonly InputAction m_Movement_Mouse_Pos;
|
|
|
|
private readonly InputAction m_Movement_Eat;
|
|
|
|
private readonly InputAction m_Movement_Pause;
|
|
|
|
public struct MovementActions
|
|
|
|
{
|
|
|
|
private @Inputs m_Wrapper;
|
|
|
|
public MovementActions(@Inputs wrapper) { m_Wrapper = wrapper; }
|
|
|
|
public InputAction @wasd => m_Wrapper.m_Movement_wasd;
|
|
|
|
public InputAction @Jump => m_Wrapper.m_Movement_Jump;
|
|
|
|
public InputAction @Dash => m_Wrapper.m_Movement_Dash;
|
|
|
|
public InputAction @Nextweapon => m_Wrapper.m_Movement_Nextweapon;
|
|
|
|
public InputAction @Lastweapon => m_Wrapper.m_Movement_Lastweapon;
|
|
|
|
public InputAction @attack => m_Wrapper.m_Movement_attack;
|
|
|
|
public InputAction @Aim => m_Wrapper.m_Movement_Aim;
|
|
|
|
public InputAction @Interact => m_Wrapper.m_Movement_Interact;
|
|
|
|
public InputAction @Mouse_Pos => m_Wrapper.m_Movement_Mouse_Pos;
|
|
|
|
public InputAction @Eat => m_Wrapper.m_Movement_Eat;
|
|
|
|
public InputAction @Pause => m_Wrapper.m_Movement_Pause;
|
|
|
|
public InputActionMap Get() { return m_Wrapper.m_Movement; }
|
|
|
|
public void Enable() { Get().Enable(); }
|
|
|
|
public void Disable() { Get().Disable(); }
|
|
|
|
public bool enabled => Get().enabled;
|
|
|
|
public static implicit operator InputActionMap(MovementActions set) { return set.Get(); }
|
|
|
|
public void SetCallbacks(IMovementActions instance)
|
|
|
|
{
|
|
|
|
if (m_Wrapper.m_MovementActionsCallbackInterface != null)
|
|
|
|
{
|
|
|
|
@wasd.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnWasd;
|
|
|
|
@wasd.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnWasd;
|
|
|
|
@wasd.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnWasd;
|
|
|
|
@Jump.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
|
|
|
|
@Jump.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
|
|
|
|
@Jump.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump;
|
|
|
|
@Dash.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
|
|
|
|
@Dash.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
|
|
|
|
@Dash.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnDash;
|
|
|
|
@Nextweapon.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnNextweapon;
|
|
|
|
@Nextweapon.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnNextweapon;
|
|
|
|
@Nextweapon.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnNextweapon;
|
|
|
|
@Lastweapon.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnLastweapon;
|
|
|
|
@Lastweapon.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnLastweapon;
|
|
|
|
@Lastweapon.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnLastweapon;
|
|
|
|
@attack.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnAttack;
|
|
|
|
@attack.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAttack;
|
|
|
|
@attack.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnAttack;
|
|
|
|
@Aim.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnAim;
|
|
|
|
@Aim.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnAim;
|
|
|
|
@Aim.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnAim;
|
|
|
|
@Interact.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnInteract;
|
|
|
|
@Interact.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnInteract;
|
|
|
|
@Interact.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnInteract;
|
|
|
|
@Mouse_Pos.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouse_Pos;
|
|
|
|
@Mouse_Pos.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouse_Pos;
|
|
|
|
@Mouse_Pos.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMouse_Pos;
|
|
|
|
@Eat.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnEat;
|
|
|
|
@Eat.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnEat;
|
|
|
|
@Eat.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnEat;
|
|
|
|
@Pause.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnPause;
|
|
|
|
@Pause.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnPause;
|
|
|
|
@Pause.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnPause;
|
|
|
|
}
|
|
|
|
m_Wrapper.m_MovementActionsCallbackInterface = instance;
|
|
|
|
if (instance != null)
|
|
|
|
{
|
|
|
|
@wasd.started += instance.OnWasd;
|
|
|
|
@wasd.performed += instance.OnWasd;
|
|
|
|
@wasd.canceled += instance.OnWasd;
|
|
|
|
@Jump.started += instance.OnJump;
|
|
|
|
@Jump.performed += instance.OnJump;
|
|
|
|
@Jump.canceled += instance.OnJump;
|
|
|
|
@Dash.started += instance.OnDash;
|
|
|
|
@Dash.performed += instance.OnDash;
|
|
|
|
@Dash.canceled += instance.OnDash;
|
|
|
|
@Nextweapon.started += instance.OnNextweapon;
|
|
|
|
@Nextweapon.performed += instance.OnNextweapon;
|
|
|
|
@Nextweapon.canceled += instance.OnNextweapon;
|
|
|
|
@Lastweapon.started += instance.OnLastweapon;
|
|
|
|
@Lastweapon.performed += instance.OnLastweapon;
|
|
|
|
@Lastweapon.canceled += instance.OnLastweapon;
|
|
|
|
@attack.started += instance.OnAttack;
|
|
|
|
@attack.performed += instance.OnAttack;
|
|
|
|
@attack.canceled += instance.OnAttack;
|
|
|
|
@Aim.started += instance.OnAim;
|
|
|
|
@Aim.performed += instance.OnAim;
|
|
|
|
@Aim.canceled += instance.OnAim;
|
|
|
|
@Interact.started += instance.OnInteract;
|
|
|
|
@Interact.performed += instance.OnInteract;
|
|
|
|
@Interact.canceled += instance.OnInteract;
|
|
|
|
@Mouse_Pos.started += instance.OnMouse_Pos;
|
|
|
|
@Mouse_Pos.performed += instance.OnMouse_Pos;
|
|
|
|
@Mouse_Pos.canceled += instance.OnMouse_Pos;
|
|
|
|
@Eat.started += instance.OnEat;
|
|
|
|
@Eat.performed += instance.OnEat;
|
|
|
|
@Eat.canceled += instance.OnEat;
|
|
|
|
@Pause.started += instance.OnPause;
|
|
|
|
@Pause.performed += instance.OnPause;
|
|
|
|
@Pause.canceled += instance.OnPause;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public MovementActions @Movement => new MovementActions(this);
|
|
|
|
public interface IMovementActions
|
|
|
|
{
|
|
|
|
void OnWasd(InputAction.CallbackContext context);
|
|
|
|
void OnJump(InputAction.CallbackContext context);
|
|
|
|
void OnDash(InputAction.CallbackContext context);
|
|
|
|
void OnNextweapon(InputAction.CallbackContext context);
|
|
|
|
void OnLastweapon(InputAction.CallbackContext context);
|
|
|
|
void OnAttack(InputAction.CallbackContext context);
|
|
|
|
void OnAim(InputAction.CallbackContext context);
|
|
|
|
void OnInteract(InputAction.CallbackContext context);
|
|
|
|
void OnMouse_Pos(InputAction.CallbackContext context);
|
|
|
|
void OnEat(InputAction.CallbackContext context);
|
|
|
|
void OnPause(InputAction.CallbackContext context);
|
|
|
|
}
|
|
|
|
}
|