Complete the code to print the Unity version.
Debug.Log("Unity version: " + Application.[1]);
The Application.unityVersion property returns the Unity version as a string.
Complete the code to create a new GameObject named "Player".
GameObject [1] = new GameObject("Player");
Variable names should start with a lowercase letter by convention. player is a good choice.
Fix the error in the code to add a Rigidbody component to a GameObject.
Rigidbody rb = gameObject.[1]<Rigidbody>();AddComponent<T>() adds a new component of type T to the GameObject.
Complete the code to check if the player pressed the space key and print a message.
if (Input.[1](KeyCode.Space)) { Debug.Log("Space key pressed!"); }
Input.GetKeyDown(KeyCode.Space) returns true only on the frame the space key is pressed.
Fill all three blanks to create a dictionary of player scores with condition.
var highScores = new Dictionary<string, int> {
{"Alice", 90},
{"Bob", 75},
{"Charlie", 85}
}.Where(kv => kv.Value [1] [2]).ToDictionary(kv => kv.Key, kv => kv.Value [3] 5);This code filters scores greater than 80 and adds 5 to each score in the new dictionary.
