|
On the main menu of my scene I have created; attempting to link sound to gui buttons to play when clicked on... Any idea how I would go about this? This is the following code I have for my main menu scene:
Much kudos.
(comments are locked)
|
|
Attach an AudioSource component to your script. Then write this code:
Then you attach the sound file to your public playClip an instructionsClip. Just add the rest in the same manner. Okay, I will try this :)
May 17 '11 at 10:36 PM
Harley
Sweet, i noticed if you want to play more then 1 sound at the same time with the same AudioSource. Use this instead: audio.PlayOneShot(TheClip);
May 17 '11 at 10:48 PM
ziC
(comments are locked)
|
