浏览代码

Fix fade-in volume. When fade in, volume is restored to 1 not the volume of the setting. (#425)

Set the end value of DOFade to the value of the setting

Co-authored-by: Lee Hun <ceo.lhsg@gmail.com>
/main
GitHub 3 年前
当前提交
efc7518c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Audio/SoundEmitters/SoundEmitter.cs

2
UOP1_Project/Assets/Scripts/Audio/SoundEmitters/SoundEmitter.cs


if (startTime <= _audioSource.clip.length)
_audioSource.time = startTime;
_audioSource.DOFade(1f, duration);
_audioSource.DOFade(settings.Volume, duration);
}
public float FadeMusicOut(float duration)

正在加载...
取消
保存