void Awake() { if (m_instance != null) { Destroy(gameObject); } else { m_instance = this; } }
private void OnDestroy() { m_instance = null; }
void Awake() { if (m_instance != null) { Destroy(gameObject); } else { m_instance = this; } }
private void OnDestroy() { m_instance = null; }