diff --git a/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationForcePanel.lua b/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationForcePanel.lua index 558e179095..28619ebe63 100644 --- a/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationForcePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationForcePanel.lua @@ -86,10 +86,10 @@ function IncarnationForcePanel:OnShow() --设置等级 self.level.text = string.format("化身等级:%s级",this.configData.Level) self.power.text = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL) - local curHaveItemNum=BagManager.GetItemCountById(this.configData.ExpCost[1]) - local curCostItemNum=this.configData.ExpCost[2] this.btnRed.gameObject:SetActive(false) if this.configData.Level<50 then + local curHaveItemNum=BagManager.GetItemCountById(this.configData.ExpCost[1]) + local curCostItemNum=this.configData.ExpCost[2] self.value.text = string.format("%s/%s",curHaveItemNum,curCostItemNum) if curHaveItemNum>curCostItemNum then self.fill:GetComponent("RectTransform").sizeDelta = Vector3.New(445,26,0)