This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-30 15:32:50 +08:00
parent aeeb103feb
commit 6da0671d85

View File

@ -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);
}
});
}