public void MusicMuteCommand() { bool isPlaying = GameManager.instance.MusicPlayer.IsPlaying; ImageMusic.SetActive(isPlaying); GameManager.instance.MusicPlayer.IsPlaying = !isPlaying; }
public void HandleAudioUI() { ImageSFX.SetActive(!GameManager.instance.MusicPlayer.IsPlaying); ImageMusic.SetActive(!GameManager.instance.SfxPlayer.IsPlaying); SliderSFX.SetValueWithoutNotify(GameManager.instance.SfxPlayer.GetVolume()); SliderMusic.SetValueWithoutNotify(GameManager.instance.MusicPlayer.GetVolume()); }