Triggering sound through player interaction
If we don’t have this checked, sounds will never play. But what’s cool is we get to trigger sounds in other ways!
Triggering sound through Unity events
Let’s get a sound for our first stairs puzzle. This one will be quite easy. The easiest way for us to add our sound will be to add an Audio Source component directly to the trigger region GameObject. Let’s find
LeftStairsTrigger and scroll down in the Inspector until we find the Interactio Trigger script, as shown in Figure 10.20.
Figure 10.20: Interaction Trigger script on the LeftStairsTrigger GameObject