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

@ -7,6 +7,7 @@ public class GameInput : MonoBehaviour
{
public event EventHandler OnInteractAction;
public event EventHandler OnInteractAlteranteAction;
private PlayerInputActions playerInputActions;
@ -18,6 +19,12 @@ public class GameInput : MonoBehaviour
playerInputActions.Player.Enable();
playerInputActions.Player.Interact.performed += Interact_performed;
playerInputActions.Player.InteractAlternate.performed += InteractAlternate_performed;
}
private void InteractAlternate_performed(UnityEngine.InputSystem.InputAction.CallbackContext obj)
{
OnInteractAlteranteAction?.Invoke(this, EventArgs.Empty);
}
private void Interact_performed(UnityEngine.InputSystem.InputAction.CallbackContext obj)