Beispiel #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
    }
Beispiel #2
0
 private void OnValueChangeSeVolume()
 {
     Shibuya24UnityAudioManager.SetVolume(AudioChannel.SE, seVolume);
 }
Beispiel #3
0
 private void OnValueChangeBgmVolume()
 {
     Debug.Log($"OnValueChangeBgmVolume : {bgmVolume}");
     Shibuya24UnityAudioManager.SetVolume(AudioChannel.BGM, bgmVolume);
 }
Beispiel #4
0
 void ToggleBGMMute()
 {
     Shibuya24UnityAudioManager.SetMute(AudioChannel.BGM, _isBgmMute);
     _isBgmMute = _isBgmMute == false;
 }
Beispiel #5
0
 void ToggleSEMute()
 {
     Shibuya24UnityAudioManager.SetMute(AudioChannel.SE, _isSeMute);
     _isSeMute = _isSeMute == false;
 }
Beispiel #6
0
 void StopBgm()
 {
     Shibuya24UnityAudioManager.StopBgm();
 }
Beispiel #7
0
 void PlayBGM2()
 {
     Shibuya24UnityAudioManager.Play("bgm/bgm_test2");
 }
Beispiel #8
0
 void PlayFx3()
 {
     Shibuya24UnityAudioManager.Play("se/se_fx3");
 }