- Home /
Best Answer
Answer by Democre · Nov 26, 2012 at 04:58 AM
Try
AudioListener.pause = true;
or
AudioListener.volume = 0.0;
Cheers!
Answer by sakumasen · Dec 01, 2015 at 06:25 AM
If you wanna stop a only AudioSourse take this. You can call the funtion whit a button. And mute this AudioSourse (The script in the object with AudioSourse)
public class Musica : MonoBehaviour {
AudioSource musica;
void Start () {
musica = GetComponent<AudioSource>();
}
public void mute () {
if (musica.mute == false) {
musica.mute = true;
}
else {
musica.mute=false;
}
}
}