void Join(GameServer server) { if (server == null || !server.CanJoin()) return; var host = server.Address.Split(':')[0]; var port = Exts.ParseIntegerInvariant(server.Address.Split(':')[1]); ConnectionLogic.Connect(host, port, "", OpenLobby, DoNothing); }
void Join(GameServer server) { if (server == null || !server.CanJoin()) return; var host = server.Address.Split(':')[0]; var port = int.Parse(server.Address.Split(':')[1]); Ui.CloseWindow(); ConnectionLogic.Connect(host, port, "", OpenLobby, OnExit); }