fix: change crossfade curve

This commit is contained in:
2026-04-21 10:40:36 +08:00
parent 352f4b0fd2
commit 5cd7da8301
9 changed files with 29 additions and 6 deletions
@@ -164,7 +164,7 @@ namespace OCES.Audio
continue;
src.volume = fromVolume;
src.DOFade(0f, duration - elapsed).SetEase(Ease.Linear);
src.DOFade(0f, duration - elapsed).SetEase(Ease.InSine); //TODO 支持读表
}
yield return null;
}
@@ -203,7 +203,7 @@ namespace OCES.Audio
if (DOTween.IsTweening(src))
continue;
src.volume = 0f;
src.DOFade(1f, duration - elapsed).SetEase(Ease.Linear);
src.DOFade(1f, duration - elapsed).SetEase(Ease.OutSine); //TODO 支持读表
}
yield return null;