public void OnDisconnectedFromServer(Client client)
        {
            Screen currentScreen = CurrentScreen();
            ScreenId screenId = (ScreenId)currentScreen.id;

            switch (screenId)
            {
                case ScreenId.Lobby:
                    StopPeer();
                    DialogPopup.ShowMessage(OnDisconnectedFromServerDialogFinish, "Server connection lost");
                    break;
                case ScreenId.Multiplyer:
                    break;
            }
        }
 public void OnConnectedToServer(Client client, NetConnection serverConnection)
 {
     StopConnectionScreen();
     StartLobbyScreen(serverInfo, false);
 }