[bug]============【心愿抽卡】道具不足时抽卡,显示特效

dev_chengFeng
wangzhenxing 2021-06-26 14:04:45 +08:00
parent 8bc03131ee
commit 129768154c
2 changed files with 5 additions and 2 deletions

View File

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

View File

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