private string GetLayer(EquippableItem item)
 {
     if (item.GetType() == typeof(Armor))
     {
         Armor armor = item as Armor;
         return(armor.Layer);
     }
     return("First");
 }
    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));
    }
    public void AddEquipment(EquippableItem equipmentToAdd)
    {
        switch (equipmentToAdd.GetType().Name)
        {
        case "Weapon":
            EquipWeapon(equipmentToAdd as Weapon);
            break;

        case "Armor":
            EquipArmor(equipmentToAdd as Armor);
            break;

        case "Shield":
            equipment.items["Shield"] = equipmentToAdd as Shield;
            break;
        }
        meshManager.AddMesh(equipmentToAdd, GetLayer(equipmentToAdd));
    }