- Home /
Question by
Oleksandr Sokil · Mar 28, 2014 at 04:57 PM ·
audioaudioclipmusic
Sound issues
I need to write a script that will play particular music when particular scene is loaded. All I have, is this code:
#pragma strict
var myClip : AudioClip;
function Start(){
if (Application.loadedLevelName == "Main Menu"){
Clip = "Some music";
}
AudioClip = myClip;
Clip.Play();
}
function Update () {
}
Though I don't even know if it half correct. Please help
Comment