Exemplo n.º 1
0
            private async Task Spectate()
            {
                var connection = new PlayerConnection(API.BaseURL.ToString(), this.World);

                connection.OnConnected = async() =>
                {
                    connection.ControlSpectate = "spectating";
                    await connection.SendControlInputAsync();

                    await connection.ListenAsync();
                };
                await connection.ConnectAsync();
            }