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(); }
private void Start() { AudioDataService.CheckMusicOn(musicSources); AudioDataService.CheckSfxOn(sfxSources); }