public void RemoveEquipment(EquippableItem equipmentToRemove)
    {
        switch (equipmentToRemove.GetType().Name)
        {
        case "Weapon":
            RemoveWeapon(equipmentToRemove as Weapon);
            break;

        case "Armor":
            RemoveArmor(equipmentToRemove as Armor);
            break;

        case "Shield":
            equipment.items["Shield"] = equipmentToRemove as Shield;
            break;
        }
        meshManager.RemoveMesh(equipmentToRemove.EquipmentType, GetLayer(equipmentToRemove));
    }
Esempio n. 2
0
 public void RemoveItem(Equipable item)
 {
     meshManager.RemoveMesh(item.Type.ToString());
 }