This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-30 17:18:34 +08:00
parent 715767db4a
commit cf65b660aa

View File

@ -465,8 +465,7 @@ namespace GameLogic
eGo.transform.localPosition = new Vector3(0, 0, 0);
eGo.transform.localScale = Vector3.one;
eGo.gameObject.SetActive(true);
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
{
// 给进度条一个缩减回弹效果
float originalFill = m_CurrentFillAmount;
float shrinkTo = Mathf.Max(0.1f, originalFill - 0.4f); // 缩到原值-0.4最小0.1
@ -479,10 +478,14 @@ namespace GameLogic
DOTween.To(
() => m_imgValue.fillAmount,
x => m_imgValue.fillAmount = x,
originalFill, 0.4f
originalFill, 1f
).SetEase(Ease.OutElastic);
});
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
{
// 特效播放完毕后销毁
GameObject.Destroy(eGo);