コード例 #1
0
ファイル: planeController.cs プロジェクト: AnisaLl/UPx3-2-
 // Use this for initialization
 void Start()
 {
     //Isgameover = GameObject.FindGameObjectWithTag("plane").GetComponent<GameOver>();
     win = false;
     ThirdPersonUserControl_blue = GameObject.FindGameObjectWithTag("blue").GetComponent<UnitySampleAssets.Characters.ThirdPerson.ThirdPersonUserControl>();
     ThirdPersonUserControl_red = GameObject.FindGameObjectWithTag("red").GetComponent<UnitySampleAssets.Characters.ThirdPerson.ThirdPersonUserControl>();
     ThirdPersonUserControl_green = GameObject.FindGameObjectWithTag("green").GetComponent<UnitySampleAssets.Characters.ThirdPerson.ThirdPersonUserControl>();
     cameraController_camera = GameObject.Find("worldCenter").GetComponent<cameraController_camera>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     plane = GameObject.FindGameObjectWithTag("plane");
     cameraController_camera = GameObject.Find("worldCenter").GetComponent<cameraController_camera>();
 }