1
This commit is contained in:
parent
6940d06d79
commit
6e89de9ab7
@ -329,7 +329,7 @@ namespace GameLogic
|
|||||||
eGo.transform.localPosition = new Vector3(500, 0, 0);
|
eGo.transform.localPosition = new Vector3(500, 0, 0);
|
||||||
eGo.transform.localScale = Vector3.one * 0.1f;
|
eGo.transform.localScale = Vector3.one * 0.1f;
|
||||||
eGo.gameObject.SetActive(true);
|
eGo.gameObject.SetActive(true);
|
||||||
eGo.transform.DOLocalMoveX(0, 1f).OnComplete(async () =>
|
eGo.transform.DOLocalMoveX(0, 0.65f).OnComplete(async () =>
|
||||||
{
|
{
|
||||||
// 特效播放完毕后销毁
|
// 特效播放完毕后销毁
|
||||||
GameObject.Destroy(eGo);
|
GameObject.Destroy(eGo);
|
||||||
@ -470,7 +470,7 @@ namespace GameLogic
|
|||||||
var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName);
|
var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName);
|
||||||
eGo.transform.SetParent(m_rectCar.transform);
|
eGo.transform.SetParent(m_rectCar.transform);
|
||||||
eGo.transform.localPosition = Vector3.zero;
|
eGo.transform.localPosition = Vector3.zero;
|
||||||
eGo.transform.localScale = Vector3.one;
|
eGo.transform.localScale = Vector3.one* giftConfig.EffectScale;
|
||||||
eGo.gameObject.SetActive(true);
|
eGo.gameObject.SetActive(true);
|
||||||
buff.m_EffectGo = eGo;
|
buff.m_EffectGo = eGo;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user