Esempio n. 1
0
 private void Awake()
 {
     if (s_Instance == null)
     {
         s_Instance = this;
         DontDestroyOnLoad(this);
     }
     else if (this != s_Instance)
     {
         Destroy(gameObject);
     }
 }
 private void Awake()
 {
     if (s_Instance == null)
     {
         s_Instance = this;
         DontDestroyOnLoad(this);
         UnityEngine.XR.XRSettings.eyeTextureResolutionScale = m_RenderScale;
     }
     else if (this != s_Instance)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
        private void Awake ()
        {
            if (s_Instance == null)
            {
                s_Instance = this;
                DontDestroyOnLoad (this);
            }
            else if (this != s_Instance)
            {
                Destroy (gameObject);
            }

            SetupVR ();
        }