Example #1
0
 public void DettachItem()
 {
     if (selectedSectionUI && gameObject.activeSelf)
     {
         selectedSectionUI.AttachedInventorySection.DetachItem(selectedSectionUI.DetachWithHinge);
     }
     selectedSectionUI = default;
     gameObject.SetActive(false);
 }
Example #2
0
 public void SetSelectedSectionUI(InventorySectionUI section) =>
 selectedSectionUI = section;