Пример #1
0
 private void SetUpItem()
 {
     validSlot = ItemData.validSlot;
     itemName  = ItemData.itemName;
     itemValue = ItemData.itemValue;
     itemIcon  = ItemData.itemIcon;
 }
Пример #2
0
    public PaperdollSlot GetPaperDollSlotByType(PaperdollSlot.PaperdollSlotType slotType)
    {
        int count = slots.Count;

        for (int i = 0; i < count; i++)
        {
            if (slots[i] is PaperdollSlot)
            {
                PaperdollSlot slot = slots[i] as PaperdollSlot;

                if (slot.slotType == slotType && slot.IsFull == false)
                {
                    return(slot);
                }
            }
        }

        return(null);
    }