Esempio n. 1
0
 public void IncreaseCapacitiesByPercent(double percentageValue)
 {
     foreach (KeyValuePair <int, GameObject> kvp in BoughtHouses)
     {
         IHouse houseInfo = kvp.Value.GetComponent <HouseController>().HouseInfo;
         if (houseInfo != null)
         {
             int amountToIncrease = (int)(houseInfo.TotalCapacity / percentageValue);
             houseInfo.IncreaseTotalCapacity(amountToIncrease);
         }
     }
 }