public void SetSlotCount(int count) { townHouseManager.SetSlotCount(count); var usedSlots = 0; if (this.TownHouses?.TownHouses != null && this.TownHouses?.TownHouses.Length > 0) { usedSlots = this.TownHouses?.TownHouses.Count(x => x.Type != (int)TownHouseSlotType.Empty) ?? 0; } townHallManager.SetSlotCount(usedSlots, count); }
public void SetSlotCount(int count) { townHouseManager.SetSlotCount(count); }