Ejemplo n.º 1
0
 // 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();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     gyroCam = Camera.main.GetComponent <GyroCamera> ();
     StartCoroutine("GetTheYCalibration");
 }