The basics of playing a sound are very straightforward in Unity (simply add an AudioSource component to a GameObject and link it to an AudioClip sound file). For simple sound effects, such as short, one-off plays of pickup confirmation noises, it's useful to have a single AudioSource component that you can then reuse to play different sound effects. That is what we'll do in this recipe.





















































