예제 #1
0
 private void Awake()
 {
     Debug.Log("Active Graphics Tier: " + Graphics.activeTier);
     instance = this;
     if (instance.dontDestroyOnLoad)
     {
         DontDestroyOnLoad(instance);
     }
     xrState = WebXRState.NORMAL;
 }
예제 #2
0
        private void Awake()
        {
            Debug.Log("Active Graphics Tier: " + Graphics.activeTier);
            instance = this;

            if (!GlobalName.Equals(name))
            {
                Debug.LogError("The webxr.js script requires the WebXRManager gameobject to be named "
                               + GlobalName + " for proper functioning");
            }

            if (dontDestroyOnLoad)
            {
                DontDestroyOnLoad(instance);
            }
        }
예제 #3
0
        private void Awake()
        {
            Debug.Log("Active Graphics Tier: " + Graphics.activeTier);
            if (null == instance)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(gameObject);
            }

            if (instance.dontDestroyOnLoad)
            {
                DontDestroyOnLoad(instance);
            }
            xrState = WebXRState.NORMAL;
        }