コード例 #1
0
ファイル: turnChangeButton.cs プロジェクト: khhle/Stalingrad
 // Use this for initialization
 void Start()
 {
     came = GameObject.Find("Render").GetComponent<cameraRotationScript>();
     flag = GameObject.Find("Flag").GetComponent<flagScript>();
     GameObject gameControllerObject = GameObject.FindWithTag ("GameController");
     if (gameControllerObject != null) {
         gameController = gameControllerObject.GetComponent <GameController>();
     }
     compass = GameObject.Find ("Compass");
 }
コード例 #2
0
ファイル: turnChangeButton.cs プロジェクト: khhle/Stalingrad
    // Use this for initialization
    void Start()
    {
        came = GameObject.Find("Render").GetComponent <cameraRotationScript>();
        flag = GameObject.Find("Flag").GetComponent <flagScript>();
        GameObject gameControllerObject = GameObject.FindWithTag("GameController");

        if (gameControllerObject != null)
        {
            gameController = gameControllerObject.GetComponent <GameController>();
        }
        compass = GameObject.Find("Compass");
    }