【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)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.staryevo.audiocore",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"displayName": "04.AudioCore",
|
||||
"description": "音频播放工具",
|
||||
"unity": "2021.3",
|
||||
|
||||
Reference in New Issue
Block a user