|
@@ -44,11 +44,12 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
UIManager.Instance.HideUIUIPanel(currentOpenUIPanel);
|
|
|
- EventSystemManager.Instance.isOpenUi = true;
|
|
|
+ // EventSystemManager.Instance.isOpenUi = true;
|
|
|
CombatDrive.Instance.CombatController.isUpdate = false;
|
|
|
ShopPanel shopPanel = await ShopPanel.OpenPanel();
|
|
|
- await shopPanel.UIClosed();
|
|
|
- EventSystemManager.Instance.isOpenUi = false;
|
|
|
+ if (!shopPanel.IsClose)
|
|
|
+ await shopPanel.UIClosed();
|
|
|
+ // EventSystemManager.Instance.isOpenUi = false;
|
|
|
CombatDrive.Instance.CombatController.isUpdate = true;
|
|
|
});
|
|
|
|
|
@@ -71,10 +72,12 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
UIManager.Instance.HideUIUIPanel(currentOpenUIPanel);
|
|
|
- EventSystemManager.Instance.isOpenUi = true;
|
|
|
+ // EventSystemManager.Instance.isOpenUi = true;
|
|
|
MainHeroPanel mainHeroPanel = await MainHeroPanel.OpenPanel();
|
|
|
- await mainHeroPanel.UIClosed();
|
|
|
- EventSystemManager.Instance.isOpenUi = false;
|
|
|
+ if (!mainHeroPanel.IsClose)
|
|
|
+ await mainHeroPanel.UIClosed();
|
|
|
+ // await mainHeroPanel.UIClosed();
|
|
|
+ // EventSystemManager.Instance.isOpenUi = false;
|
|
|
});
|
|
|
Btn_DongFu.onClick.AddListener(async () =>
|
|
|
{
|
|
@@ -84,12 +87,14 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
UIManager.Instance.HideUIUIPanel(currentOpenUIPanel);
|
|
|
- EventSystemManager.Instance.isOpenUi = true;
|
|
|
+ // EventSystemManager.Instance.isOpenUi = true;
|
|
|
CombatDrive.Instance.CombatController.isUpdate = false;
|
|
|
HeroInformationPanel heroInformationPanel = await HeroInformationPanel.OpenPanel();
|
|
|
- await heroInformationPanel.UIClosed();
|
|
|
+ // await heroInformationPanel.UIClosed();
|
|
|
+ if (!heroInformationPanel.IsClose)
|
|
|
+ await heroInformationPanel.UIClosed();
|
|
|
CombatDrive.Instance.CombatController.isUpdate = true;
|
|
|
- EventSystemManager.Instance.isOpenUi = false;
|
|
|
+ // EventSystemManager.Instance.isOpenUi = false;
|
|
|
});
|
|
|
|
|
|
Btn_Back.onClick.AddListener(() =>
|
|
@@ -100,10 +105,9 @@ namespace Fort23.Mono
|
|
|
// MainPanel.OpenPanel();
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
- private async CTask OpenSelectSkillPanel()
|
|
|
+
|
|
|
+ private async CTask OpenSelectSkillPanel()
|
|
|
{
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private async void Bnt_shengShi_onClick()
|
|
@@ -171,7 +175,7 @@ namespace Fort23.Mono
|
|
|
AppBarPanel appBarPanel = null;
|
|
|
if (UIManager.Instance.GetComponent<AppBarPanel>() == null)
|
|
|
{
|
|
|
- appBarPanel = await UIManager.Instance.LoadAndOpenPanel<AppBarPanel>(null, UILayer.Top);
|
|
|
+ appBarPanel = await UIManager.Instance.LoadAndOpenPanel<AppBarPanel>(null, UILayer.Top, isFocus: false);
|
|
|
}
|
|
|
else
|
|
|
{
|