示例#1
0
        private async void OnConnectClick(ClickEvent evt)
        {
            ListArea.Clear();
            client.CreateLobbyWorld();
            client.ConnectToServerLobby();
            await RefreshList(0.1f);
            await RefreshList(0.5f);

            refreshList = true;
            new Task(async() =>
            {
                while (refreshList)
                {
                    await RefreshList(1f);
                }
            }).Start();
        }