Browse Source

修改bug

lzx 3 days ago
parent
commit
79c17fe745
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Assets/Scripts/GameUI/UI/GongFaUpgradePanel/GongFaUpgradePanel.cs

+ 2 - 1
Assets/Scripts/GameUI/UI/GongFaUpgradePanel/GongFaUpgradePanel.cs

@@ -266,9 +266,10 @@ namespace Fort23.Mono
                 UIManager.Instance.DormancyGComponent(gongFaUpgradeInfoWidget);
             }
 
-            Btn_Rest.gameObject.SetActive(_skillInfo.SkillPowerupConfig.ID > 1);
+           
             _gongFaUpgradeInfoWidgets.Clear();
             _skillInfo = skillInfo;
+            Btn_Rest.gameObject.SetActive(_skillInfo.SkillPowerupConfig.ID > 1);
             RedDotComType02.CustomInit(13, _skillInfo);
             RedDotComType01.CustomInit(12, _skillInfo);
             _skillPowerupConfigs = ConfigComponent.Instance.GetAll<SkillPowerupConfig>().ToList();