From ec0be514e874c0e4a5701c464efcfe789bc79ca1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Mon, 19 May 2025 23:39:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A4=BC=E7=89=A9=E7=89=B9?= =?UTF-8?q?=E6=95=88=E4=B8=8D=E6=B6=88=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }