void OnItemClicked(ButtonPressData data) { GameObject itemGO = items[data.index]; itemGO.SetActive(false); ItemDB.Item itemInDB = itemMap[itemGO]; itemDB.AddItemToBox(itemInDB); sendButton.gameObject.SetActive(true); }