Exemplo n.º 1
0
    public override void OnPlace(Tile[] parentTiles)
    {
        base.OnPlace(parentTiles);

        UpdateHouseLevel();

        populationController = GameObject.Find("PopulationController").GetComponent(typeof(PopulationController)) as PopulationController;
        populationController.ChangeMaxPopulation(maxSupportedHabitants);
    }
Exemplo n.º 2
0
 public void ChangeMaxSupportedPopulation(int change)
 {
     populationController.ChangeMaxPopulation(change);
     maxSupportedHabitants += change;
 }