浏览代码

fix:补充提交

chenbin 5 天之前
父节点
当前提交
568439cafe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Assets/Scripts/Business/Runtime/Map/TestMainMap/MapUIComponent.cs

+ 3 - 3
Assets/Scripts/Business/Runtime/Map/TestMainMap/MapUIComponent.cs

@@ -255,10 +255,10 @@ namespace FL.Map.TestMainMap
             SaveHpAddTime(dto.entityId, out var delay);
             if (delay > 0)
             {
-                var timer = Context.Time.AddDelayTimer(delay, () =>
+                ITimer timer = null;
+                timer = Context.Time.AddDelayTimer(delay, () =>
                 {
-                    if (_isMasking)
-                        return;
+                    _hpAddTimers.Remove(timer);
                     LoadHpAddView(dto);
                 });
                 _hpAddTimers.Add(timer);