Greetings.I must enter 3 sound on an object, but each time it is activated the audio has to be random. What’s the procedure? I thank you.
Make an array of AudioClips and use Random.Range to pick one at random and assign it to the AudioSource, then play it.
Thanks for the help but could put an example because I am new to Javascript and I’m with some difficulty to create this script. Anyway thank you.