so in my scene there is a iHome and music is playing on it i want to be able to click it with the mouse and the music shuts off.
heres the code i got so far that is not working
var Ihome : GameObject;
var sound1 : AudioClip;
Function OnMouseDown(){
Ihome.AudioClip (sound1);
Ihome.audio.Stop(sound1);
}
plz help