public override void Reset() { GameObject.Find("TownHall").GetComponent <CityManager>().AddPopulationProduction(1); theAddOn = null; this.gameObject.GetComponent <Health>().Reset(); CurrentPop = 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(); }