One Shot Sound After Countdown JS

Hello

Is there a way I can have a One Shot Audio sample played after a certain amount of time, like 3 seconds in JavaScript? I’ve looked everywhere and can’t seem to find what I’m looking for!

Thanks

Easy,keep in mind this is a very simple way of doing it Make a object, add component(audio source), on the component audio source un tick play on awake, drag your mp3(sound file) onto audio clip , then attach this script to the object
"
var SoundToPlayWhenGameStarts : AudioClip;
var CountDownTime : float = 3;

function Start () {

yield WaitForSeconds(CountDownTime);

GetComponent.().PlayOneShot(SoundToPlayWhenGameStarts);

}
"
then drag your mp3(sound file) in unity onto the script variable(SoundToPlayWhenGameStarts), this is a very simple way, there many other ways. Hope this helped :slight_smile: