public void OnSelectHotbar0(InputAction.CallbackContext context) { switch (context.phase) { case InputActionPhase.Performed: hotbar.SetSelection(0, !isHoldShift); break; } }
public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { hotbar.SetSelection(id, true); } else if (eventData.button == PointerEventData.InputButton.Right) { hotbar.SetSelection(id, false); } else if (eventData.button == PointerEventData.InputButton.Middle) { hotbar.SetSelection(id, true); hotbar.SetSelection(id, false); } }
public void OnPointerClick(PointerEventData eventData) { if (!GameManager.Instance.IsPaused) { if (eventData.button == PointerEventData.InputButton.Left) { hotbar.SetSelection(invId, true); } else if (eventData.button == PointerEventData.InputButton.Right) { hotbar.SetSelection(invId, false); } else if (eventData.button == PointerEventData.InputButton.Middle) { hotbar.SetSelection(invId, true); hotbar.SetSelection(invId, false); } } }