Hi,
I want to mute the sound of only the one Gameobject my script is attached to.
I tried a lot of options to mute the sound, but it dies not work:
AudioSource audiosource;
audiosource = GetComponent();
// I tried these three, none of them works
if(…)
{
audiosource.mute = true;
AudioListener.volume = 0f;
audiosource.Stop();
}