void OnDestroy()
        {
            StopAllCoroutines();
            m_Server?.Dispose();
            m_Server = null;

#if UNITY_EDITOR
            EditorApplication.playModeStateChanged -= CleanUpOnExitingPlayMode;
#endif
        }
Esempio n. 2
0
 void OnDestroy()
 {
     m_Server?.Dispose();
     m_Server = null;
 }