var muted = false; function OnMouseDown(){
if(muted == false){ audio.volume = 0; muted = true;
} else if (muted == true){ audio.volume = audio.maxVolume; muted = false;
}
}
i Added the script above to an object "music" on my main menu but it jus mute the audio that is attach to it. how do i mute the rest of the audio which is attach to other objects?