Beispiel #1
0
    public void SelectItem(ItemSlot selected)
    {
        if (selectedSlot == selected)
        {
            DeselectItem();
            itemDetailController.Close();
            selectedSlot = null;
            return;
        }

        DeselectItem();

        selectedSlot = selected;
        selectedSlot.OnItemClick();
        itemDetailController.Init();
    }