예제 #1
0
 public void ChangeSfx()
 {
     if (AudioDataService.HasSfxOn())
     {
         ChangeButton(sfxBtn, true);
         AudioDataService.SetSfx(false);
     }
     else
     {
         ChangeButton(sfxBtn, false);
         AudioDataService.SetSfx(true);
     }
     AudioDataService.CheckSfxOn(audioSourcesManager.GetSfxSources());
     selectAudioSource.Play();
 }
예제 #2
0
 private void Start()
 {
     AudioDataService.CheckMusicOn(musicSources);
     AudioDataService.CheckSfxOn(sfxSources);
 }