1
This commit is contained in:
parent
2d66b018f5
commit
5fada12077
@ -468,23 +468,11 @@ namespace GameLogic
|
|||||||
|
|
||||||
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
|
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
// 特效播放完毕后销毁
|
// 特效播放完毕后销毁
|
||||||
GameObject.Destroy(eGo);
|
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;
|
float originalFill = m_CurrentFillAmount;
|
||||||
@ -498,7 +486,7 @@ namespace GameLogic
|
|||||||
DOTween.To(
|
DOTween.To(
|
||||||
() => m_imgValue.fillAmount,
|
() => m_imgValue.fillAmount,
|
||||||
x => m_imgValue.fillAmount = x,
|
x => m_imgValue.fillAmount = x,
|
||||||
originalFill, 2f
|
originalFill, 1.2f
|
||||||
).SetEase(Ease.OutElastic);
|
).SetEase(Ease.OutElastic);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user