【m】音乐变化修改
This commit is contained in:
@@ -89,11 +89,11 @@ namespace Stary.Evo.AudioCore
|
||||
{
|
||||
if (currentAudioSource.volume > targetVolume)
|
||||
{
|
||||
currentAudioSource.volume -= startVolume * Time.deltaTime / fadeDuration;
|
||||
currentAudioSource.volume -= (startVolume-targetVolume) * Time.deltaTime / fadeDuration;
|
||||
}
|
||||
else
|
||||
{
|
||||
currentAudioSource.volume += startVolume * Time.deltaTime / fadeDuration;
|
||||
currentAudioSource.volume += (targetVolume-startVolume) * Time.deltaTime / fadeDuration;
|
||||
}
|
||||
|
||||
if (Mathf.Abs(currentAudioSource.volume - targetVolume) < 0.01f)
|
||||
|
||||
Reference in New Issue
Block a user