コード例 #1
0
ファイル: PlayerKeyboard.cs プロジェクト: n2name/LunarLander
    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
ファイル: LandingPad.cs プロジェクト: n2name/LunarLander
 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;
 }