public void onSoundButtonClicked() { MusicPlayer.getInstance().handleClickSound(); if (PlayerPrefHelper.GetSoundSetting()) { soundSprite.sprite = soundOff; PlayerPrefHelper.SaveSoundSetting(false); musicPlayer.TurnOffMusic(); } else { soundSprite.sprite = soundOn; PlayerPrefHelper.SaveSoundSetting(true); musicPlayer.TurnOnMusic(); } }