示例#1
0
        // Use this for initialization
        void Start()
        {
            instance = this;

            //Set the initial rotation to align the virtual world with the real world on start
            initialRotation = Quaternion.Euler (new Vector3 (-90, 0, 0));

            #if UNITY_IPHONE
            HeadTrackingIOS.StartCameraUpdates();
            #endif
            #if UNITY_ANDROID
            HeadTrackingAndroid.Initialize();
            #endif
        }
示例#2
0
        // Use this for initialization
        void Start()
        {
            instance = this;

            //Set the initial rotation to align the virtual world with the real world on start
            initialRotation = Quaternion.Euler(new Vector3(-90, 0, 0));

#if UNITY_IPHONE
            HeadTrackingIOS.StartCameraUpdates();
#endif
#if UNITY_ANDROID
            HeadTrackingAndroid.Initialize();
#endif
        }