Пример #1
0
    void Start()
    {
        thrusters = new Thrusters();

        //Automatically populate the Gui variable with the Gui script attached to the EmptyObject Gui using its Gui Tag
        Gui = GameObject.FindWithTag("Gui").GetComponent(typeof(GuiInGame)) as GuiInGame;
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     //Automatically populate the Gui variable with the Gui script attached to the EmptyObject Gui using its Gui Tag
     Gui = GameObject.FindWithTag("Gui").GetComponent(typeof(GuiInGame)) as GuiInGame;
     totalLandingPads = (GameObject.FindGameObjectsWithTag("LandingPad") as GameObject[]).Length;
 }
Пример #3
0
 void Start()
 {
     //Automatically populate the Gui variable with the Gui script attached to the EmptyObject Gui using its Gui Tag
     Gui = GameObject.FindWithTag("Gui").GetComponent(typeof(GuiInGame)) as GuiInGame;
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     //Automatically populate the Gui variable with the Gui script attached to the EmptyObject Gui using its Gui Tag
     Gui = GameObject.FindWithTag("Gui").GetComponent(typeof(GuiInGame)) as GuiInGame;
     totalLandingPads = (GameObject.FindGameObjectsWithTag("LandingPad") as GameObject[]).Length;
 }