变身卡自选箱修改提交

dev_chengFeng
jiaoyangna 2021-11-26 18:51:56 +08:00
parent dd232c96d7
commit 97c23fb3cb
1 changed files with 8 additions and 0 deletions

View File

@ -183,6 +183,14 @@ function RewardBoxPanel:SetSingleGiftData(index,item,boxId,tagNum)
--判断是否是在背包界面打开
select:GetComponent("Button").interactable = BagManager.isBagPanel
select:SetActive(BagManager.isBagPanel)
if itemConfig[rewardGroup[boxId].ShowItem[index][1]].ItemType == ItemType.Incarnation then
local num = BagManager.GetItemCountById(rewardGroup[boxId].ShowItem[index][1])
if num > 0 then
select:SetActive(false)
else
select:SetActive(true)
end
end
--判断是否选了该物品
if curId == rewardGroup[boxId].ShowItem[index][1] then
go:SetActive(true)