Browse Source

fix:补充提交

chenbin 5 days ago
parent
commit
568439cafe

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

@@ -255,10 +255,10 @@ namespace FL.Map.TestMainMap
             SaveHpAddTime(dto.entityId, out var delay);
             SaveHpAddTime(dto.entityId, out var delay);
             if (delay > 0)
             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);
                     LoadHpAddView(dto);
                 });
                 });
                 _hpAddTimers.Add(timer);
                 _hpAddTimers.Add(timer);