1
This commit is contained in:
parent
cd8f58670f
commit
3fb18b72e2
@ -495,7 +495,6 @@ 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;
|
||||
@ -511,8 +510,18 @@ namespace GameLogic
|
||||
}
|
||||
else if (buff.m_Id == 9)
|
||||
{
|
||||
// 加载常规特效
|
||||
LoadEffectGo(giftConfig, buff);
|
||||
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 == 2)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user