예제 #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();
 }