コード例 #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;
        }