修复礼物特效不消失的问题
This commit is contained in:
parent
40aea0d60a
commit
ec0be514e8
@ -241,13 +241,17 @@ namespace GameLogic
|
||||
/// </summary>
|
||||
private void TtqEffectCreateFunc(GiftConfig giftConfig)
|
||||
{
|
||||
GameModule.Timer.AddTimer((e) =>
|
||||
GameModule.Timer.AddTimer(async (e) =>
|
||||
{
|
||||
var m_Ego = GameModule.Resource.LoadGameObject("TTQ01");
|
||||
m_Ego.transform.SetParent(this.transform);
|
||||
m_Ego.transform.localPosition = Vector3.zero;
|
||||
m_Ego.transform.localScale = Vector3.one;
|
||||
//m_Ego.transform.GetComponent<UIParticle>().scale = 1;
|
||||
|
||||
// 设置时间消失
|
||||
await UniTask.Delay(giftConfig.TimerLen * 1000);
|
||||
GameObject.Destroy(m_Ego);
|
||||
}, giftConfig.TimerLen);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user