void DeserializeEquipement(string repr) { print("starting deseriallize eq"); InitializeEquipement(); print("eq initialized "); string[] items = repr.Split(';'); repr = repr.TrimEnd(';'); for (int i = 1; i < items.Length; i++) { string itemstring = items[i]; if (itemstring != "") { EquipableItem item = EquipableItem.FromString(itemstring.Trim()); item.SetOwner(this); Equip(item); } } }