Hello!
In the Pause Menu I made for my game, I want the "Mute" button to toggle the sound on and off with each press.
(As a system, all the buttons in the Pause Menu are grouped into a family, and each has its own instance variable. Navigation goes from top to bottom.)
I tried using a local boolean for the toggle function, but I couldn’t get it to work correctly. It mutes the sound on the first press, but pressing it again doesn’t unmute.
I’d really appreciate your help.
Thank you!