/// <summary> /// /// </summary> private void Awake() { masterSliderNotifier.OnValueChanging.Subscribe(value => { float volume = (isNaive) ? (value) : (SoundUtil.CalcGetVolume(value)); SoundManager.Instance.SetVolume(SoundCategory.Master, volume); }); bgmSliderNotifier.OnValueChanging.Subscribe(value => { float volume = (isNaive) ? (value) : (SoundUtil.CalcGetVolume(value)); SoundManager.Instance.SetVolume(SoundCategory.Bgm, volume); }); seSliderNotifier.OnValueChanging.Subscribe(value => { float volume = (isNaive) ? (value) : (SoundUtil.CalcGetVolume(value)); SoundManager.Instance.SetVolume(SoundCategory.Se, volume); }); voiceSliderNotifier.OnValueChanging.Subscribe(value => { float volume = (isNaive) ? (value) : (SoundUtil.CalcGetVolume(value)); SoundManager.Instance.SetVolume(SoundCategory.Voice, volume); }); seSliderNotifier.OnValueChanged.Subscribe(value => { seSample.Play(); }); voiceSliderNotifier.OnValueChanged.Subscribe(value => { voiceSample.Play(); }); bgmSample.Play(); }