|
Hey guys, I always wondered what the default way is to playback audio Sound Effects, because my current way seems kinda overly complicated. Here is how I do it currently: I have a GameObject, with an AUDIO.js script. I link every AUDIO source from the scene in there like that: And I set up the Update function like that: So when I want to play the Audiofile from any script I just write: This seems like such a hassle and completely counter intuitive. Is there a more straight forward way of being able to play any Audio Source in the scene, from any script? I really appreciate your help. Thanks
(comments are locked)
|
whi you don'y use "onCollisionEnter" function?is must fast.check the guide.
(comments are locked)
|

Look at the Broadcast set of functions in the Reference guide