化身之力bug修改

dev_chengFeng
yuanshuai 2022-04-28 10:45:25 +08:00
parent 72127689d0
commit a53c0446b8
1 changed files with 2 additions and 2 deletions

View File

@ -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)