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