Added the Cutting Counter

This commit is contained in:
BuyMyMojo 2023-03-01 02:05:53 +11:00
parent 44837c6c13
commit 500f8f5f2a
41 changed files with 2383 additions and 70 deletions

View file

@ -44,6 +44,15 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""InteractAlternate"",
""type"": ""Button"",
""id"": ""7e915c9c-d428-4512-842f-51583bb5c901"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@ -189,6 +198,28 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
""action"": ""Interact"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""e6b7cd58-527a-4f05-ac6c-837c045588fc"",
""path"": ""<Keyboard>/f"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""InteractAlternate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""915cd8bb-a4cc-4a75-b7ee-327c965ac8c2"",
""path"": ""<Gamepad>/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""InteractAlternate"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
@ -199,6 +230,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
m_Player_Interact = m_Player.FindAction("Interact", throwIfNotFound: true);
m_Player_InteractAlternate = m_Player.FindAction("InteractAlternate", throwIfNotFound: true);
}
public void Dispose()
@ -262,12 +294,14 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
private readonly InputAction m_Player_Move;
private readonly InputAction m_Player_Interact;
private readonly InputAction m_Player_InteractAlternate;
public struct PlayerActions
{
private @PlayerInputActions m_Wrapper;
public PlayerActions(@PlayerInputActions wrapper) { m_Wrapper = wrapper; }
public InputAction @Move => m_Wrapper.m_Player_Move;
public InputAction @Interact => m_Wrapper.m_Player_Interact;
public InputAction @InteractAlternate => m_Wrapper.m_Player_InteractAlternate;
public InputActionMap Get() { return m_Wrapper.m_Player; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
@ -283,6 +317,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@Interact.started += instance.OnInteract;
@Interact.performed += instance.OnInteract;
@Interact.canceled += instance.OnInteract;
@InteractAlternate.started += instance.OnInteractAlternate;
@InteractAlternate.performed += instance.OnInteractAlternate;
@InteractAlternate.canceled += instance.OnInteractAlternate;
}
private void UnregisterCallbacks(IPlayerActions instance)
@ -293,6 +330,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
@Interact.started -= instance.OnInteract;
@Interact.performed -= instance.OnInteract;
@Interact.canceled -= instance.OnInteract;
@InteractAlternate.started -= instance.OnInteractAlternate;
@InteractAlternate.performed -= instance.OnInteractAlternate;
@InteractAlternate.canceled -= instance.OnInteractAlternate;
}
public void RemoveCallbacks(IPlayerActions instance)
@ -314,5 +354,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
{
void OnMove(InputAction.CallbackContext context);
void OnInteract(InputAction.CallbackContext context);
void OnInteractAlternate(InputAction.CallbackContext context);
}
}