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