Ver Fonte

修改bug

lzx há 3 dias atrás
pai
commit
11db5f3b18
1 ficheiros alterados com 3 adições e 2 exclusões
  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);
                         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);
                         EventManager.Instance.Dispatch(CustomEventType.CancelEvent,null);
                     }
                     }