/// <summary> /// The Unity Update method. /// </summary> public void Update() { // Check that motion tracking is tracking. if (Session.Status != SessionStatus.Tracking) { return; } // Iterate over planes found in this frame and instantiate corresponding GameObjects to // visualize them. Session.GetTrackables <DetectedPlane>(m_NewPlanes, TrackableQueryFilter.New); for (int i = 0; i < m_NewPlanes.Count; i++) { // Instantiate a plane visualization prefab and set it to track the new plane. The // transform is set to the origin with an identity rotation since the mesh for our // prefab is updated in Unity World coordinates. GameObject planeObject = Instantiate(DetectedPlanePrefab, Vector3.zero, Quaternion.identity, transform); planeObject.GetComponent <DetectedPlaneVisualizer>().Initialize(m_NewPlanes[i]); if (tc != null) { tc.isGetPlane = true; tc = null; } } }
public void Start() { //コントローラーのセット if (canvas.GetComponent <TutorialGameController>() != null) { tc = canvas.GetComponent <TutorialGameController>(); } else if (true) { } }
void Start() { gameController = Camera.main.GetComponent <TutorialGameController>(); tgc = (TutorialGameController)gameController; uiController = Camera.main.GetComponent <TutorialUIController>(); cameraController = Camera.main.GetComponent <CameraController>(); moveTiles = new List <Tile> (); attackTiles = new List <Tile> (); splitTiles = new List <Tile> (); joinTiles = new List <Tile> (); }
//--------------------------------------------------- // Use this for initialization void Awake() { #if SHOW_DEBUG_MESSAGES Debug.Log("TutorialGameControllerを実行"); #endif // sceneにinstanceが存在するかを検査 // 存在する場合,消滅させる。 if (instance) { DestroyImmediate(gameObject); return; } // このinstanceを唯一のobjectにする。 instance = this; }
public void Start() { tc = canvas.GetComponent <TutorialGameController>(); }
private TutorialGameController cameraReference; //Shortcut to get the game controller script private void Awake() { cameraReference = Camera.main.GetComponent <TutorialGameController>(); cameraSelectedGroup = GameObject.Find("GameController").GetComponent <TutorialGameController>().selectedGroup; }
//public GameObject cup; // Start is called before the first frame update void Start() { canvas = GameObject.Find("Canvas"); tc = canvas.GetComponent <TutorialGameController>(); tc.isFieldSet = true; }