public static void DestroyInstance() { if (m_gameController != null) { UnityEngine.Object.Destroy(m_gameController.gameObject); m_gameController = null; } }
protected void Awake() { if (m_gameController != null) { UnityEngine.Object.Destroy(base.gameObject); return; } UnityEngine.Object.DontDestroyOnLoad(this); m_gameController = this; InitBootStrappingSystems(); }