|
@@ -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);
|
|
|
}
|