// Use this for initialization
 void Start()
 {
     uiMgr          = gameObject.GetComponent <InspectionUIMgr>();
     gyroCameraCtrl = FindObjectOfType <GyroCamera>();
     gyroCamera     = gyroCameraCtrl.GetComponentInChildren <Camera>();
     screenCenter   = new Vector2(Screen.width >> 1, Screen.height >> 1);
     //隐藏UI内容
     uiMgr.HideItems();
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     gyroCam = Camera.main.GetComponent <GyroCamera> ();
     StartCoroutine("GetTheYCalibration");
 }