public void SellItem() { itemInventoryIndex = transform.GetSiblingIndex(); equipmentPanel.SellItem(itemInventoryIndex); detailsPanel.SetActive(false); }