Browse Source

修改bug

lzx 5 days ago
parent
commit
ae4f2f1980

+ 2 - 0
Assets/Scripts/GameUI/UI/GongFaUpgradePanel/GongFaUpgradePanelData.cs

@@ -3,6 +3,8 @@ using Fort23.UTool;
 using UnityEngine.UI;
 using UnityEngine;
 using System.Collections.Generic;
+using Coffee.UIExtensions;
+
 namespace Fort23.Mono
 {
 	public partial class GongFaUpgradePanel 

+ 1 - 1
Assets/Scripts/GameUI/UI/HeroInformationPanel/HeroBreakthroughPanel.cs

@@ -270,6 +270,7 @@ namespace Fort23.Mono
             {
                 heroAttributData = HeroHerlp.GetHeroChageHeroAttributeData(PlayerManager.Instance.myHero, nextHeroInfo);
                 PlayerManager.Instance.myHero.heroData.isYuanMan = false;
+                PlayerManager.Instance.myHero.Upgrade();
             }
             //圆满
             else if (type == 4)
@@ -279,7 +280,6 @@ namespace Fort23.Mono
 
             if (type != 4)
             {
-                PlayerManager.Instance.myHero.Upgrade();
                 HeroBreakthroughSuccessPanel heroBreakthroughSuccessPanel =
                     await HeroBreakthroughSuccessPanel.OpenPanel(type, heroAttributData);
                 await heroBreakthroughSuccessPanel.UIClosed();