神兵bug修改
parent
fc218b4002
commit
fc26bf5c5d
|
@ -102,6 +102,11 @@ function this:OnOpen(_data)
|
|||
this.UpdateWin(_data)
|
||||
end
|
||||
|
||||
function this:OnShow()
|
||||
local newData=GodWeaponManager.GetSingleWeaponData(godwData.Did)
|
||||
this.UpdateWin(newData)
|
||||
end
|
||||
|
||||
function this.UpdateWin(_data)
|
||||
if _data.point and _data.point>0 then
|
||||
this.unloadBtn.gameObject:SetActive(true)
|
||||
|
|
|
@ -72,7 +72,6 @@ function this:BindEvent()
|
|||
local newWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||
--飘战力
|
||||
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.GodWeapon.RefreshGodWeaponInfoPanel,godWeaponData)
|
||||
end)
|
||||
else
|
||||
PopupTipPanel.ShowTip("道具不足")
|
||||
|
|
Loading…
Reference in New Issue