// Handles intentional and unintentional disconnects from the server void OnDisconnect() { Views.OnDisconnect(); Multiplayer.onDisconnected -= OnDisconnect; Multiplayer.onUpdateDroppedClients -= OnUpdateDroppedClients; Multiplayer.onSocketDisconnected -= OnSocketDisconnected; Dispatcher.Reset(); Controller.Reset(); Decks.Reset(); Manager.Reset(); }