Browse Source

fix:补充提交

chenbin 5 days ago
parent
commit
568439cafe
1 changed files with 3 additions and 3 deletions
  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);