Пример #1
0
        public static void InitCardboard()
        {
            CardboardHeadTracker.CreateTracker();
            CardboardHeadTracker.ResumeTracker();

            RefreshParameters();

            CardboardQrCode.RegisterObserver();
            Application.quitting += ApplicationQuit;
        }
        public static void InitCardboard()
        {
            if (!initiated)
            {
                #if UNITY_ANDROID
                CardboardAndroidInitialization.InitAndroid();
                #endif

                CardboardHeadTracker.CreateTracker();
                CardboardHeadTracker.ResumeTracker();

                CardboardQrCode.RegisterObserver();
                Application.quitting += ApplicationQuit;
                initiated             = true;
            }

            RefreshParameters();
        }