Пример #1
0
 public static void DestroyInstance()
 {
     if (m_gameController != null)
     {
         UnityEngine.Object.Destroy(m_gameController.gameObject);
         m_gameController = null;
     }
 }
Пример #2
0
 protected void Awake()
 {
     if (m_gameController != null)
     {
         UnityEngine.Object.Destroy(base.gameObject);
         return;
     }
     UnityEngine.Object.DontDestroyOnLoad(this);
     m_gameController = this;
     InitBootStrappingSystems();
 }