private void Setup() { if (isSetup) { return; } gameObject.AddComponent <GUIManager> (); gameObject.AddComponent <ClickController> (); crew = player.GetComponent <Crew> (); ThingFactory.Setup(); GUIFunctions.Setup(); BlueprintDesignManager.Setup(); //setup structures that are already in scene foreach (StructureController sc in GameObject.FindObjectsOfType <StructureController>()) { sc.SetupRealStructure(); sc.SetAltitudeToMatchTerrain(); } isSetup = true; }
public BlueprintDesign GetBlueprintDesign() { if (blueprintDesign == null) { blueprintDesign = BlueprintDesignManager.GetDefaultDesign(thingType); } return(blueprintDesign); }