This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-30 17:34:11 +08:00
parent 2d66b018f5
commit 5fada12077

View File

@ -468,23 +468,11 @@ namespace GameLogic
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
{
// 特效播放完毕后销毁
GameObject.Destroy(eGo);
//// 生成爆点
//var effectGo = GameModule.Resource.LoadGameObject("Shou_Boom");
//effectGo.transform.SetParent(m_rectCar.transform);
//effectGo.transform.localPosition = Vector3.zero;
//effectGo.transform.localScale = Vector3.one;
//effectGo.gameObject.SetActive(true);
//await UniTask.Delay(2000);
//// 销毁爆点特效
//GameObject.Destroy(effectGo);
});
await UniTask.Delay(2500); // 等待特效播放完毕
await UniTask.Delay(1500); // 等待特效播放完毕
// 给进度条一个缩减回弹效果
float originalFill = m_CurrentFillAmount;
@ -498,7 +486,7 @@ namespace GameLogic
DOTween.To(
() => m_imgValue.fillAmount,
x => m_imgValue.fillAmount = x,
originalFill, 2f
originalFill, 1.2f
).SetEase(Ease.OutElastic);
});