dunc
New Member
Posts: 1
Posts: 1
|
Post by dunc on May 7, 2022 21:44:16 GMT
Hi
I'm using unity events to decouple actions in my project so I can use them later on with other projects. Is there a way to trigger a sound from one of these UnityEvents? The built in events isn't exactly useful in a general sense (e.g. an unlocking attempt is made on a keypad. Depending on if it is successful a different sound should play).
I'd prefer to steer away from using the code method provided as this will tightly couple my scripts to Master Audio.
I could create a separate object that calls the events and have the unity events call it, but that seems like something so simple I'd think its already included in Master Audio and I'm probably just missing it.
Regards
|
|
|
Post by DarkTonic Dev on May 7, 2022 22:29:32 GMT
Event Sounds script supports a variety of MonoBehaviour events.
You can also set up and fire Custom Events, which are part of Master Audio.
I hope that helps.
-Brian
|
|