protected override void OnStart() { Level = 1; TheLabel = gameObject.AddComponent <UI.SceneBuildingLabel>(); TheLabel.TheBuilding = this; _visSections = transform.GetComponentsInChildren <LevelVisibilitySection>(); RefreshLevelVisibilitySections(); }
protected override void OnStart() { TheLabel = gameObject.AddComponent <UI.SceneBuildingLabel>(); TheLabel.TheBuilding = this; if ((bool)TheData["autoBuild"] == true) { Build(); } }