Beispiel #1
0
    public void MusicMuteCommand()
    {
        bool isPlaying = GameManager.instance.MusicPlayer.IsPlaying;

        ImageMusic.SetActive(isPlaying);
        GameManager.instance.MusicPlayer.IsPlaying = !isPlaying;
    }
Beispiel #2
0
 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());
 }