Complete the code to get a component of type Rigidbody attached to the same GameObject.
Rigidbody rb = GetComponent<[1]>();GetComponent<Rigidbody>() returns the Rigidbody component attached to the GameObject.
Complete the code to send a message to call the method named "Jump" on this GameObject's components.
gameObject.[1]("Jump");
SendMessage calls the method named "Jump" on all components attached to the GameObject.
Fix the error in accessing the "health" variable from another component called PlayerStats.
int currentHealth = GetComponent<PlayerStats>().[1];The variable name is case-sensitive and should be exactly "health".
Fill both blanks to get the AudioSource component from a child GameObject and play the sound.
AudioSource audio = GetComponentInChildren<[1]>(); audio.[2]();
GetComponentInChildren<AudioSource>() finds the AudioSource in child objects, and Play() starts the sound.
Fill all three blanks to find a component of type Light, check if it is enabled, and then disable it.
Light lightComp = GetComponent<[1]>(); if (lightComp.[2]) { lightComp.[3] = false; }
GetComponent<Light>() gets the Light component. The property "enabled" checks if it is on and can be set to false to turn it off.