void OnEquipmentClicked(Text text, EqSlot slot, int indexSlot) { if (invUI.isActiveAndEnabled) { if (indexSlot == selectedSlot) { CloseSelection(); RemoveEquipment(indexSlot); text.text = "None"; LoadAllAttributes(); } else { selectedSlot = indexSlot; invUI.ChangeFilter(indexSlot); } } else { selectedSlot = indexSlot; ShowEquipmentSelection(indexSlot); } }
public void ShowInventory() { HideAllWindow(); inventoryUI.gameObject.SetActive(true); inventoryUI.ChangeFilter(inventoryUI.slotFilter.value); }