void OnDestroy() { // Stop background threads. if (m_backgroundDataProvider != null) { m_backgroundDataProvider.StopClientThread(); } }
void OnApplicationQuit() { // Stop background threads. if (m_backgroundDataProvider != null) { m_backgroundDataProvider.StopClientThread(); } }