Пример #1
0
    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;
    }
Пример #2
0
 public BlueprintDesign GetBlueprintDesign()
 {
     if (blueprintDesign == null)
     {
         blueprintDesign = BlueprintDesignManager.GetDefaultDesign(thingType);
     }
     return(blueprintDesign);
 }