Question by
_C1 · Jan 31, 2016 at 04:48 PM ·
c#audioaudiosourcemusic
Play multiple sounds from one object
Hey,
I am making a CD player and I want it to be able to play music from it. I want the player to be able to click a button and the next song will play. There will be about 5 different songs and when the player presses the P key it will play the next song.
I am unsure of how to do this and any help would be appreciated.
So far I have an audio source on the CD player and I am using C# to script.
Thanks very much. :)
Comment
Change the audio clip playing in the audio source when you press P. $$anonymous$$ake an array of all the sound clips and you can fetch it through script.