1
This commit is contained in:
parent
9e054a8843
commit
9bc721cdcc
@ -282,6 +282,30 @@ namespace GameLogic
|
|||||||
//// 加载常规特效
|
//// 加载常规特效
|
||||||
//LoadEffectGo(giftConfig, buff);
|
//LoadEffectGo(giftConfig, buff);
|
||||||
}
|
}
|
||||||
|
else if (buff.m_Id == 3)
|
||||||
|
{
|
||||||
|
// 加载手指移动爆点特效
|
||||||
|
var eGo = GameModule.Resource.LoadGameObject("HBC");
|
||||||
|
eGo.transform.SetParent(m_rectCar.transform);
|
||||||
|
eGo.transform.localPosition = new Vector3(500, 0, 0);
|
||||||
|
eGo.transform.localScale = Vector3.one * 0.1f;
|
||||||
|
eGo.gameObject.SetActive(true);
|
||||||
|
|
||||||
|
eGo.transform.DOLocalMoveX(0, 1.5f).OnComplete(async () =>
|
||||||
|
{
|
||||||
|
// 特效播放完毕后销毁
|
||||||
|
GameObject.Destroy(eGo);
|
||||||
|
// 生成爆点
|
||||||
|
var effectGo = GameModule.Resource.LoadGameObject("XNB_Green_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);
|
||||||
|
});
|
||||||
|
}
|
||||||
else if (buff.m_Id == 4)
|
else if (buff.m_Id == 4)
|
||||||
{
|
{
|
||||||
// 蓝仙女棒的额外特殊处理
|
// 蓝仙女棒的额外特殊处理
|
||||||
@ -318,7 +342,7 @@ namespace GameLogic
|
|||||||
eGo.transform.localScale = Vector3.one;
|
eGo.transform.localScale = Vector3.one;
|
||||||
eGo.gameObject.SetActive(true);
|
eGo.gameObject.SetActive(true);
|
||||||
|
|
||||||
eGo.transform.DOLocalMoveX(0, 0.5f).OnComplete(async () =>
|
eGo.transform.DOLocalMoveX(0, 1.5f).OnComplete(async () =>
|
||||||
{
|
{
|
||||||
// 特效播放完毕后销毁
|
// 特效播放完毕后销毁
|
||||||
GameObject.Destroy(eGo);
|
GameObject.Destroy(eGo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user