Hello i have a problem i have a unmute button that gonna mute my background music but it doesent mute it, it worked until i upgraded unity 4.0 to 4.2
this is my script:
public bool muted = false;
string buttonTextaudio = "MUTE";
if (GUI.Button(new Rect(655, 435, 125, 25), buttonTextaudio, style))
{
audio.PlayOneShot(buttonsound);
if(muted == false)
{
AudioListener.volume = 0.0F;
muted = true;
buttonTextaudio = "UNMUTE";
}
else
{
AudioListener.volume = 1.0F;
muted = false;
buttonTextaudio = "MUTE";
}
}
I have seen more people that have this problem and its a Unity 4.2 bug