Browse Source

修改bug

lzx 3 days ago
parent
commit
11db5f3b18
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Assets/Scripts/Core/UI/Core/UIManager.cs

+ 3 - 2
Assets/Scripts/Core/UI/Core/UIManager.cs

@@ -411,8 +411,9 @@ namespace Fort23.Mono
 
                         destroyUI.Remove(uiBindingAttribute.prefab);
                     }
-
-                    if (uiPanel.isAddStack)
+                    Assembly assembly = Assembly.Load("Fort23.Mono");
+                    Type combatPanel = assembly.GetType(" Fort23.Mono.CombatPanel");
+                    if (uiPanel.isAddStack && uiPanel.GetType() != combatPanel)
                     {
                         EventManager.Instance.Dispatch(CustomEventType.CancelEvent,null);
                     }