Пример #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);
     }
 }
Пример #3
0
        private void Awake ()
        {
            if (s_Instance == null)
            {
                s_Instance = this;
                DontDestroyOnLoad (this);
            }
            else if (this != s_Instance)
            {
                Destroy (gameObject);
            }

            SetupVR ();
        }