fix: change crossfade curve

This commit is contained in:
2026-04-21 10:40:36 +08:00
parent 01e1b67dc6
commit 15f220a4c7
9 changed files with 35 additions and 9 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;