diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index eb52cd1e..c2c9fc57 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -8,6 +8,7 @@ using UnityEngine; using System; using DG.Tweening; using Coffee.UIExtensions; +using Cysharp.Threading.Tasks; namespace GameLogic { @@ -525,9 +526,13 @@ namespace GameLogic m_Buff1.m_EffectGo = eGo; // 移动特效 - eGo.transform.DOLocalMove(Vector3.zero, 1.5f).OnComplete(() => + eGo.transform.DOLocalMove(Vector3.zero, 1.5f).OnComplete(async () => { - + await UniTask.Delay(2000); + if (eGo != null) + { + GameObject.Destroy(eGo); + } }); }