diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs index 3f042d2c..6dbf6ea5 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs @@ -241,13 +241,17 @@ namespace GameLogic /// 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().scale = 1; + + // 设置时间消失 + await UniTask.Delay(giftConfig.TimerLen * 1000); + GameObject.Destroy(m_Ego); }, giftConfig.TimerLen); }