Beispiel #1
0
        private void Start()
        {
#if UNITY_EDITOR
            Debug.Log("UNITY_EDITOR Start");
#endif
            var inputPanel = InputPanel.GetComponent <InputPanel>();
            inputPanel.Activate(null);
            FixedDeviceLatitude  = inputPanel.GetLatitude();
            FixedDeviceLongitude = inputPanel.GetLongitude();

#if HAS_AR_CORE
#else
#if HAS_AR_KIT
#else
            ArCamera.GetComponent <VuforiaBehaviour>().enabled = true;
            VuforiaRuntime.Instance.InitVuforia();
#endif
#endif

#if UNITY_IOS_unused
            if (dontDestroyOnLoad)
            {
                DontDestroyOnLoad(this.gameObject);
            }
            DeepLinkReceiverIsAlive(); // Let the App Controller know it's ok to call URLOpened now.
#endif


            // Start GetPosition() coroutine
            StartCoroutine("GetPosition");
            // Start GetData() coroutine
            StartCoroutine("GetData");
        }
Beispiel #2
0
        protected override void Start()
        {
            base.Start();

#if UNITY_EDITOR
            Debug.Log("UNITY_EDITOR Start");
#endif

#if HAS_AR_CORE
#else
#if HAS_AR_KIT
#else
            ArCamera.GetComponent <VuforiaBehaviour>().enabled = true;
            VuforiaRuntime.Instance.InitVuforia();
#endif
#endif

#if UNITY_IOS_unused
            if (dontDestroyOnLoad)
            {
                DontDestroyOnLoad(this.gameObject);
            }
            DeepLinkReceiverIsAlive(); // Let the App Controller know it's ok to call URLOpened now.
#endif
            // Start GetPosition() coroutine
            StartCoroutine("GetPosition");
            // Start GetData() coroutine
            StartCoroutine("GetData");
        }