Complete the code to play a sound when the player jumps.
AudioSource.PlayClipAtPoint([1], transform.position);The PlayClipAtPoint method requires an AudioClip to play. jumpSound is the correct AudioClip variable.
Complete the code to adjust the volume of the AudioSource component.
audioSource.[1] = 0.5f;
pitch instead of volume.The volume property controls how loud the sound is played.
Fix the error in the code to play a sound only if the AudioSource is not already playing.
if (!audioSource.[1]) { audioSource.Play(); }
playOnAwake which is a setting, not a state.The isPlaying property tells if the AudioSource is currently playing a sound.
Fill both blanks to create a dictionary that maps sound names to AudioClip objects, filtering clips longer than 3 seconds.
var soundDict = new Dictionary<string, AudioClip>() {
{"[1]", clip1},
{"[2]", clip2}
};We map the sound names 'jump' and 'run' to their respective clips.
Fill all three blanks to create a LINQ query that selects sound names with clips longer than 2 seconds.
var longSounds = soundDict.Where(kv => kv.Value.length [1] [2]).Select(kv => kv.[3]).ToList();
The query filters clips longer than 2 seconds and selects their keys (names).