Complete the code to print "Hello World" in the Unity console.
Debug.[1]("Hello World");
Use Debug.Log to print messages to the Unity console.
Complete the code to print the value of the variable score using Debug.Log.
int score = 10; Debug.[1]($"Score is {score}");
Use Debug.Log to print variables with string interpolation.
Fix the error in the code to correctly print the player's name.
string playerName = "Alex"; Debug.[1](playerName);
Println or WriteLine which are not Unity methodsDebug.Show which does not existUnity uses Debug.Log to print messages, not Println or WriteLine.
Fill both blanks to print the player's score only if it is greater than 50.
int score = 75; if (score [1] 50) { Debug.[2]($"High score: {score}"); }
< instead of > in the conditionDebug.Print which is not a Unity methodUse > to check if score is greater than 50 and Debug.Log to print the message.
Fill all three blanks to create a dictionary of player names and scores, then print only those with scores above 80.
var playerScores = new Dictionary<string, int> {
{"Alice", 90},
{"Bob", 70},
{"Charlie", 85}
};
foreach (var [1] in playerScores)
{
if ([2].Value [3] 80)
{
Debug.Log($"[2].Key scored [2].Value");
}
}Use player as the loop variable, check if player.Value > 80, and print the player's name and score.
