public static void InteractHold(InputAction action) { if (Input.GetAxisRaw("Interact") != 0f) { action.Invoke(); } }
public static bool InteractButton(InputAction action) { if (Input.GetAxisRaw("Interact") != 0f) { if (interactDown == false) { action.Invoke(); interactDown = true; } } if (Input.GetAxisRaw("Interact") == 0f) { interactDown = false; } return(interactDown); }
public void Execute(object parameter) { action?.Invoke(parameter); }