예제 #1
0
        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);
        }
예제 #2
0
        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);
        }