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);
     }
 }
예제 #2
0
 public void ShowInventory()
 {
     HideAllWindow();
     inventoryUI.gameObject.SetActive(true);
     inventoryUI.ChangeFilter(inventoryUI.slotFilter.value);
 }