Пример #1
0
 public void EquipItem(IEquipmentModel equipment_)
 {
     foreach (AbstractEquipmentHolder holder in equipmentHolders)
     {
         _newType = EquipmentHelper.GetEquipType(equipment_.Type);
         if (holder.EquipType != _newType)
         {
             continue;
         }
         holder.UnequipItem();
         holder.EquipItem(equipment_);
         break;
     }
 }