public void Disconnect() { lobbyConnectionState = SessionConnectionState.DISCONNECTED; ClientScene.DestroyAllClientObjects(); if (SteamManager.Initialized) { SteamMatchmaking.LeaveLobby(steamLobbyId); } if (myClient != null) { myClient.Disconnect(); myClient = null; } UNETServerController.Disconnect(); NetworkClient.ShutdownAll(); steamLobbyId.Clear(); }