Quantcast
Channel: Latest Questions by LlamaNervous
Viewing all articles
Browse latest Browse all 48

Stop and start audio using c#

$
0
0
Hi so I have a disco in a game that plays music and I have speakers around the room that I want the audio to source from. However, I wanted to set up a DJ booth where you can change the song playing via some buttons you click on or press a button. As I am new to unity, I don't know how I can get the button object to stop the current audio and play a new audio (keep in mind the audio is attached to the speaker objects) Any help would be appreciated. :)

Viewing all articles
Browse latest Browse all 48

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>