1
This commit is contained in:
parent
e05a4535ce
commit
b2bdf45a5d
@ -460,12 +460,12 @@ namespace GameLogic
|
||||
else
|
||||
{
|
||||
// 加载手指移动爆点特效
|
||||
var eGo = GameModule.Resource.LoadGameObject("Shou");
|
||||
var eGo = GameModule.Resource.LoadGameObject("SlowDown");
|
||||
eGo.transform.SetParent(m_rectCar.transform);
|
||||
eGo.transform.localPosition = new Vector3(500, 0, 0);
|
||||
eGo.transform.localPosition = new Vector3(0, 0, 0);
|
||||
eGo.transform.localScale = Vector3.one;
|
||||
eGo.gameObject.SetActive(true);
|
||||
eGo.transform.DOLocalMoveX(0, 1.5f).OnComplete(async () =>
|
||||
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
|
||||
{
|
||||
// 给进度条一个缩减回弹效果
|
||||
float originalFill = m_CurrentFillAmount;
|
||||
@ -485,15 +485,16 @@ namespace GameLogic
|
||||
|
||||
// 特效播放完毕后销毁
|
||||
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);
|
||||
|
||||
//// 生成爆点
|
||||
//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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user