1
This commit is contained in:
parent
614ae4bb53
commit
b1cac015bb
File diff suppressed because one or more lines are too long
@ -264,6 +264,25 @@ namespace GameLogic
|
||||
|
||||
List<GameObject> m_ListEgo = new List<GameObject>();
|
||||
|
||||
public void SetCurrenFill()
|
||||
{
|
||||
|
||||
// 给进度条一个缩减回弹效果
|
||||
float originalFill = m_CurrentFillAmount;
|
||||
float shrinkTo = Mathf.Max(0.1f, originalFill - 0.2f); // 缩到原值-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, 0.4f
|
||||
).SetEase(Ease.OutElastic);
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加礼物推力效果
|
||||
@ -281,6 +300,7 @@ namespace GameLogic
|
||||
|
||||
|
||||
await UniTask.Delay(6000);
|
||||
|
||||
// 直接扣
|
||||
m_AllAddPush += (int)buff.addPower;
|
||||
|
||||
|
@ -807,9 +807,10 @@ namespace GameLogic
|
||||
m_Buff1.m_EffectGo = eGo;
|
||||
|
||||
// 移动特效
|
||||
eGo.transform.DOLocalMoveX(-2000, 16f).OnComplete(async () =>
|
||||
eGo.transform.DOLocalMoveX(0, 5f).OnComplete(async () =>
|
||||
{
|
||||
GameObject.Destroy(eGo);
|
||||
m_TempList[i].SetCurrenFill();
|
||||
});
|
||||
|
||||
await UniTask.Delay(500); // 延时1秒
|
||||
@ -918,6 +919,13 @@ namespace GameLogic
|
||||
{
|
||||
GameObject.Destroy(eGo);
|
||||
});
|
||||
|
||||
for (int i = 0; i < 45; i++)
|
||||
{
|
||||
DataGameSceneManager.Instance.m_TeamSortList[1].SetCurrenFill();
|
||||
await UniTask.Delay(1000);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -934,6 +942,12 @@ namespace GameLogic
|
||||
{
|
||||
GameObject.Destroy(eGo);
|
||||
});
|
||||
|
||||
for (int i = 0; i < 45; i++)
|
||||
{
|
||||
DataGameSceneManager.Instance.m_TeamSortList[1].SetCurrenFill();
|
||||
await UniTask.Delay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user