private void Awake() { Debug.Log("Active Graphics Tier: " + Graphics.activeTier); instance = this; if (instance.dontDestroyOnLoad) { DontDestroyOnLoad(instance); } xrState = WebXRState.NORMAL; }
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); } }
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; }