Unity Question

Started by
-1 comments, last by Axafekt 12 years, 7 months ago
so in my level there is a iHome that is playing music and i want you to be able to click it and get the music to stop

heres the code i have so far thats not working

var Ihome : GameObject;
var sound1 : AudioClip;

function OnMouseDown(){
Ihome.AudioClip(sound1);
Ihome.audio.Stop(sound1);
}

This topic is closed to new replies.

Advertisement