浏览代码

AudioManager UnregisterChannel fix (#367)

/main
GitHub 4 年前
当前提交
858dae7a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      UOP1_Project/Assets/Scripts/Audio/AudioManager.cs

6
UOP1_Project/Assets/Scripts/Audio/AudioManager.cs


private void UnregisterChannel(AudioCueEventChannelSO audioCueEventChannel)
{
audioCueEventChannel.OnAudioCuePlayRequested += PlayAudioCue;
audioCueEventChannel.OnAudioCueStopRequested += StopAudioCue;
audioCueEventChannel.OnAudioCueFinishRequested += FinishAudioCue;
audioCueEventChannel.OnAudioCuePlayRequested -= PlayAudioCue;
audioCueEventChannel.OnAudioCueStopRequested -= StopAudioCue;
audioCueEventChannel.OnAudioCueFinishRequested -= FinishAudioCue;
}
// Both MixerValueNormalized and NormalizedToMixerValue functions are used for easier transformations

正在加载...
取消
保存