Parcourir la source

fix:补充提交

chenbin il y a 5 jours
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);
             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);