示例#1
0
        private void Awake()
        {
            if (m_instance == null)
            {
                m_instance = this;
            }
            else if (m_instance.GetInstanceID() != this.GetInstanceID())
            {
                Destroy(this.gameObject);
            }

            DontDestroyOnLoad(this.gameObject);
            CheckVRSettings();
        }
示例#2
0
 public void QuitGame()
 {
     m_instance = null;
     Application.Quit();
 }