1
This commit is contained in:
parent
cf65b660aa
commit
eec7a44486
@ -466,22 +466,6 @@ namespace GameLogic
|
|||||||
eGo.transform.localScale = Vector3.one;
|
eGo.transform.localScale = Vector3.one;
|
||||||
eGo.gameObject.SetActive(true);
|
eGo.gameObject.SetActive(true);
|
||||||
|
|
||||||
// 给进度条一个缩减回弹效果
|
|
||||||
float originalFill = m_CurrentFillAmount;
|
|
||||||
float shrinkTo = Mathf.Max(0.1f, originalFill - 0.4f); // 缩到原值-0.4,最小0.1
|
|
||||||
DOTween.To(
|
|
||||||
() => m_imgValue.fillAmount,
|
|
||||||
x => m_imgValue.fillAmount = x,
|
|
||||||
shrinkTo, 0.12f
|
|
||||||
).SetEase(Ease.InQuad).OnComplete(() =>
|
|
||||||
{
|
|
||||||
DOTween.To(
|
|
||||||
() => m_imgValue.fillAmount,
|
|
||||||
x => m_imgValue.fillAmount = x,
|
|
||||||
originalFill, 1f
|
|
||||||
).SetEase(Ease.OutElastic);
|
|
||||||
});
|
|
||||||
|
|
||||||
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
|
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -499,6 +483,26 @@ namespace GameLogic
|
|||||||
//// 销毁爆点特效
|
//// 销毁爆点特效
|
||||||
//GameObject.Destroy(effectGo);
|
//GameObject.Destroy(effectGo);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await UniTask.Delay(1000); // 等待特效播放完毕
|
||||||
|
|
||||||
|
// 给进度条一个缩减回弹效果
|
||||||
|
float originalFill = m_CurrentFillAmount;
|
||||||
|
float shrinkTo = Mathf.Max(0.1f, originalFill - 0.4f); // 缩到原值-0.4,最小0.1
|
||||||
|
DOTween.To(
|
||||||
|
() => m_imgValue.fillAmount,
|
||||||
|
x => m_imgValue.fillAmount = x,
|
||||||
|
shrinkTo, 1f
|
||||||
|
).SetEase(Ease.InQuad).OnComplete(() =>
|
||||||
|
{
|
||||||
|
DOTween.To(
|
||||||
|
() => m_imgValue.fillAmount,
|
||||||
|
x => m_imgValue.fillAmount = x,
|
||||||
|
originalFill, 3f
|
||||||
|
).SetEase(Ease.OutElastic);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (buff.m_Id == 2)
|
else if (buff.m_Id == 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user