Browse Source

修复了一个,切换技能时,可能导致游戏暂停失效的bug

lcn 3 months ago
parent
commit
90c3a598c5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Assets/Scripts/GameUI/UI/Hero/WidgetIconSkill.cs

+ 2 - 1
Assets/Scripts/GameUI/UI/Hero/WidgetIconSkill.cs

@@ -26,7 +26,8 @@ namespace Fort23.Mono
         private async void OnClickSkillBtn()
         private async void OnClickSkillBtn()
         {
         {
             
             
-            HeroDetailPanel heroDetailPanel = await UIManager.Instance.LoadAndOpenPanel<HeroDetailPanel>(null);
+            //HeroDetailPanel heroDetailPanel = await UIManager.Instance.LoadAndOpenPanel<HeroDetailPanel>(null);
+            HeroDetailPanel heroDetailPanel = UIManager.Instance.GetComponent<HeroDetailPanel>();
             
             
             // SkillUIComponent skillUIComponent = await UIManager.Instance.CreateGComponent<SkillUIComponent>(Callback);
             // SkillUIComponent skillUIComponent = await UIManager.Instance.CreateGComponent<SkillUIComponent>(Callback);
             heroDetailPanel.skillUIComponent.SetOtherBorder(this);
             heroDetailPanel.skillUIComponent.SetOtherBorder(this);