private static void House2Build(HouseFactory house, ref int stages, ref bool parkingSlot) { House house2 = house.GetHouse(2); if (house2 != null) { for (int i = 0; i < 5; i++) { house2.BuildHouse(stages, parkingSlot); stages += 2; } } }
private static void House1Build(HouseFactory house, int stages, ref bool parkingSlot) { House house1 = house.GetHouse(1); if (house1 != null) { for (int i = 0; i < 5; i++) { house1.BuildHouse(stages, parkingSlot); stages++; parkingSlot = !parkingSlot; } } }