/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (s_cInstance == this) { s_cInstance = null; this.m_cBGM = null; this.m_lstEnableSE.Clear(); this.m_lstEnableENV.Clear(); } }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if( s_cInstance == this ) { s_cInstance = null; this.m_cBGM = null; this.m_lstEnableSE.Clear(); this.m_lstEnableENV.Clear(); } }