Complete the code to start the server in Unity.
NetworkManager.singleton.Start[1]();To start the server in Unity's networking, you call StartServer() on the NetworkManager singleton.
Complete the code to send a message from client to server.
client.Send[1](message);In Unity networking, clients send commands to the server using methods marked with [Command].
Fix the error in the server callback method declaration.
[[1]]
void CmdSendData(string data) {
// server logic
}The correct attribute to mark a method as a command from client to server is [Command].
Fill both blanks to create a dictionary of player scores where keys are player IDs and values are scores greater than 10.
var highScores = new Dictionary<int, int> { { [1], [2] } };The dictionary key is the player ID and the value is the score. We want scores greater than 10, so 15 fits.
Fill all three blanks to create a dictionary comprehension that maps player names to their scores if the score is above 50.
var topPlayers = new Dictionary<string, int> { { [1], [2] } }; // Only if [3] > 50The dictionary maps player names to scores, and the condition checks if the score is above 50.