private void NetClientOnDisconnected(string obj) { netClient?.Shutdown(); netClient = null; state.ui.Event("Disconnect"); }
public void StopNetworking() { netClient?.Shutdown(); netClient = null; }