//**************************************************************************************************** // //**************************************************************************************************** public void OnDestroy() { options.Save(); if (m_instance == this) { m_instance = null; } m_UI.Destroy(); if (m_navModes != null) { m_navModes.Destroy(); m_navModes = null; } }