I’m trying to create a mute button. I’ll click on it the sound will go on off and the texture on it will switch too (like a speaker with a bar on it or no).
I figure out how to toggle the sound but how can I toggle the texture?
If you have a script example it will be great. Thanks!
function OnMouseDown ()
{
playing = !playing;
if (audio.isPlaying !playing) audio.Stop();
if (!audio.isPlaying playing) audio.Play();
}