Пример #1
0
    void Start()
    {
        Shibuya24UnityAudioManager.InitializeIfNeed();

        // Apply LocalSave
#if ENABLE_LOCALSAVE_SHIBUYA24_AUDIO
        bgmVolume  = AudioLocalSave.GetVolume(AudioChannel.BGM);
        seVolume   = AudioLocalSave.GetVolume(AudioChannel.SE);
        _isBgmMute = AudioLocalSave.GetMute(AudioChannel.BGM);
        _isSeMute  = AudioLocalSave.GetMute(AudioChannel.SE);
#endif
    }
Пример #2
0
 private void OnValueChangeSeVolume()
 {
     Shibuya24UnityAudioManager.SetVolume(AudioChannel.SE, seVolume);
 }
Пример #3
0
 private void OnValueChangeBgmVolume()
 {
     Debug.Log($"OnValueChangeBgmVolume : {bgmVolume}");
     Shibuya24UnityAudioManager.SetVolume(AudioChannel.BGM, bgmVolume);
 }
Пример #4
0
 void ToggleBGMMute()
 {
     Shibuya24UnityAudioManager.SetMute(AudioChannel.BGM, _isBgmMute);
     _isBgmMute = _isBgmMute == false;
 }
Пример #5
0
 void ToggleSEMute()
 {
     Shibuya24UnityAudioManager.SetMute(AudioChannel.SE, _isSeMute);
     _isSeMute = _isSeMute == false;
 }
Пример #6
0
 void StopBgm()
 {
     Shibuya24UnityAudioManager.StopBgm();
 }
Пример #7
0
 void PlayBGM2()
 {
     Shibuya24UnityAudioManager.Play("bgm/bgm_test2");
 }
Пример #8
0
 void PlayFx3()
 {
     Shibuya24UnityAudioManager.Play("se/se_fx3");
 }