private void Dispose(bool disposing) { if (m_Disposed) { return; } if (disposing) { KeepAliveManager.Dispose(); NetworkManager.Dispose(); PluginManager.Dispose(); PacketHandlers.Clear(); DefaultPacketHandlers.Clear(); } m_Disposed = true; }