You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//if my button was pressed
if(SoundEngine.sharedEngine().isMute()) {
SoundEngine.sharedEngine().unmute();
} else {
SoundEngine.sharedEngine().mute();
}
when i start my game, and i press a lot of times, no have problem. But, when i start my game, stop and go back to unmute the sound i receive NullPointException.
on SoundEngine line 64.
The text was updated successfully, but these errors were encountered:
I have a button that mute and unmute the sound.
basically i have
//if my button was pressed
if(SoundEngine.sharedEngine().isMute()) {
SoundEngine.sharedEngine().unmute();
} else {
SoundEngine.sharedEngine().mute();
}
when i start my game, and i press a lot of times, no have problem. But, when i start my game, stop and go back to unmute the sound i receive NullPointException.
on SoundEngine line 64.
The text was updated successfully, but these errors were encountered: