【ID1019177】

【鸿蒙阵】共鸣区上阵激活神魂将,下拉必现
dev_chengFeng
jiaoyangna 2021-11-16 16:28:36 +08:00
parent 1e4a7a57be
commit 7f5a36cf4b
1 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function this.SingleBoxDataShow(go,boxData,index)
local TimerText = Util.GetGameObject(go.transform,"Box/Empty/frame/Text"):GetComponent("Text")
local AddImage = Util.GetGameObject(go.transform,"Box/Empty/frame/AddImage")
local redPoint = Util.GetGameObject(go.transform,"Box/Empty/redPoint")
local heroObj = Util.GetGameObject(go.transform,"GameObject")
Util.GetGameObject(go.transform, "GameObject/proIcon"):GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_huo 1_zh")
ItemList[go] ={}
ItemList[go].index = index
@ -110,6 +110,7 @@ function this.SingleBoxDataShow(go,boxData,index)
ItemList[go].Empty = Empty
ItemList[go].AddImage = AddImage
heroObj:SetActive(false)
Empty:SetActive(true)
mask:SetActive(true)
lock:SetActive(true)
@ -121,6 +122,7 @@ function this.SingleBoxDataShow(go,boxData,index)
if gridData.gridId <= Box then
if gridData.heroId ~= "" then
Empty:SetActive(false)
heroObj:SetActive(true)
local data = HeroManager.GetSingleHeroData(gridData.heroId)
if data then
this.SingleItemDataShow(go, data)
@ -135,6 +137,7 @@ function this.SingleBoxDataShow(go,boxData,index)
AddImage:SetActive(false)
end
Empty:SetActive(true)
heroObj:SetActive(false)
mask:SetActive(false)
lock:SetActive(false)
redPoint:SetActive(false)