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));
    }
Ejemplo n.º 2
0
 public void AddItem(Equipable item)
 {
     meshManager.AddMesh(item);
 }