1
This commit is contained in:
parent
5fada12077
commit
cd8f58670f
@ -493,6 +493,27 @@ namespace GameLogic
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (buff.m_Id == 8)
|
||||||
|
{
|
||||||
|
// 蓝仙女棒的额外特殊处理
|
||||||
|
var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName);
|
||||||
|
eGo.transform.SetParent(m_rectCar.transform);
|
||||||
|
eGo.transform.localPosition = Vector3.zero;
|
||||||
|
eGo.transform.localScale = Vector3.one * giftConfig.EffectScale;
|
||||||
|
eGo.gameObject.SetActive(true);
|
||||||
|
eGo.transform.localPosition = new Vector3(-1500, 0, 0);
|
||||||
|
eGo.transform.DOLocalMoveX(0, 4f).OnComplete(async () =>
|
||||||
|
{
|
||||||
|
await UniTask.Delay((giftConfig.TimerLen - 4) * 1000);
|
||||||
|
// 特效播放完毕后销毁
|
||||||
|
GameObject.Destroy(eGo);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else if (buff.m_Id == 9)
|
||||||
|
{
|
||||||
|
// 加载常规特效
|
||||||
|
LoadEffectGo(giftConfig, buff);
|
||||||
|
}
|
||||||
else if (buff.m_Id == 2)
|
else if (buff.m_Id == 2)
|
||||||
{
|
{
|
||||||
// 红仙女棒的加速效果特殊处理,因为这个效果并不是加载特效,而是材质球上的材质开关
|
// 红仙女棒的加速效果特殊处理,因为这个效果并不是加载特效,而是材质球上的材质开关
|
||||||
|
Loading…
x
Reference in New Issue
Block a user