public override void OnPlace(Tile[] parentTiles) { base.OnPlace(parentTiles); UpdateHouseLevel(); populationController = GameObject.Find("PopulationController").GetComponent(typeof(PopulationController)) as PopulationController; populationController.ChangeMaxPopulation(maxSupportedHabitants); }
public void ChangeMaxSupportedPopulation(int change) { populationController.ChangeMaxPopulation(change); maxSupportedHabitants += change; }