Browse Source

Merge branch 'master' of http://192.168.123.2:3000/fort23/XY001

DESKTOP-FB72PO8\Administrator 3 months ago
parent
commit
63e53ae40c
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()
         {
             
-            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);
             heroDetailPanel.skillUIComponent.SetOtherBorder(this);