While the approach in the previous recipe (using PlayOneShot(...) with a single AudioSource) is fine for one-off sound effects, when further control may be required over a playing sound, each sound will needs to be played in its own AudioSource component. In this recipe, we'll create two separate AudioSource components and pause/resume each with different arrow keys.
Playing and controlling different sounds each with their own AudioSource component
Getting ready
Try this with two audio clips that are several seconds long. We have included two free music clips inside folder 04_02.