Example #1
0
    void OnItemClicked(ButtonPressData data)
    {
        GameObject itemGO = items[data.index];

        itemGO.SetActive(false);
        ItemDB.Item itemInDB = itemMap[itemGO];
        itemDB.AddItemToBox(itemInDB);

        sendButton.gameObject.SetActive(true);
    }