Exemplo n.º 1
0
    public void Equip(Armor armor)
    {
        ArmorSlot slot = armorSlots[armor.type];

        if (slot != null && armor != null)
        {
            slot.Set(armor);
        }
    }
Exemplo n.º 2
0
    public void EquipArmor(ArmorType type, Armor armor)
    {
        ArmorSlot slot = getArmorSlotByType(type);

        if (slot != null)
        {
            slot.Set(armor);
        }
    }
Exemplo n.º 3
0
    public void UnEquip(ArmorType type)
    {
        ArmorSlot slot = armorSlots[type];

        if (slot != null && slot.isOccupied)
        {
            slot.Set(null);
        }
    }