Ejemplo n.º 1
0
        void Awake()
        {
            //    Debug.Log("Input.backButtonLeavesApp " + Input.backButtonLeavesApp );
            var go = GameObject.FindGameObjectWithTag("LarCamera");

            if (go != null)
            {
                larManager = go.GetComponent <LarManager>();
            }

            Input.backButtonLeavesApp = false;

            var activeScene = SceneManager.GetActiveScene();

            sceneIndex = activeScene.buildIndex;
        }
Ejemplo n.º 2
0
        public virtual IEnumerator Initialize()
        {
            var go = GameObject.FindGameObjectWithTag("LarCamera");

            if (go == null)
            {
                Debug.Log("Gameobject with tag LarCamera not found!");
                yield break;
            }
            larCamera = go.GetComponent <LarManager>();
            if (larCamera == null)
            {
                Debug.Log("LarManager not found!");
                yield break;
            }

            yield break;
        }