public void OnPointerDown(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { state.closeInventory(); } }
public void OnState() { if (!statePanel.activeSelf) { avatarState.openInventory(); } else { avatarState.closeInventory(); } }