private void Update() { if (onPressEvents && action.GetDown()) { onPress.Invoke(); } if (onHoldEvents && action.Get()) { onHold.Invoke(); } if (onReleaseEvents && action.GetUp()) { onRelease.Invoke(); } }