[bug]============【心愿抽卡】道具不足时抽卡,显示特效
parent
8bc03131ee
commit
129768154c
|
|
@ -60,9 +60,11 @@ function QianKunBoxBuyOnePanel:BindEvent()
|
|||
Util.AddClick(this.openOneAgainButton, function ()
|
||||
if isLimitUpHero then
|
||||
if this.func then
|
||||
local isShow=this.func()
|
||||
if not isShow then
|
||||
self.bg.gameObject:SetActive(false)
|
||||
self.bg.gameObject:SetActive(true)
|
||||
this.func()
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
|
|
|
|||
|
|
@ -242,7 +242,8 @@ function TimeLimitUpHero:RefreshGetHeroTimes()
|
|||
itemId=d[1]
|
||||
if BagManager.GetItemCountById(itemId)<d[2] then
|
||||
PopupTipPanel.ShowTip(itemConfig[itemId].Name.."数量不足!")
|
||||
return
|
||||
--只在不足提示的时候返回,用以判断特效是否显示
|
||||
return true
|
||||
end
|
||||
end
|
||||
local state = PlayerPrefs.GetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.PrayerTen)
|
||||
|
|
|
|||
Loading…
Reference in New Issue