Esempio n. 1
0
    public override void Reset()
    {
        GameObject.Find("TownHall").GetComponent <CityManager>().AddPopulationProduction(1);
        theAddOn = null;

        this.gameObject.GetComponent <Health>().Reset();
        CurrentPop = 0;
    }
Esempio n. 2
0
    // Use this for initialization
    public override void Start()
    {
        if (!IsPreview)
        {
            GameObject.Find("TownHall").GetComponent <CityManager>().AddPopulationProduction(PopulationGain);
        }
        theAddOn        = null;
        b_IsResidential = true;

        base.Start();
    }