TCX_LongZhu
DESKTOP-MMO982B\User 2025-03-25 11:55:45 +08:00
parent 5eca4e4c9f
commit 09fb9c651a
1 changed files with 7 additions and 1 deletions

View File

@ -141,12 +141,18 @@ function this:FormationAdapter()
if MonsterGroup.Contents[1][i] and MonsterGroup.Contents[1][i] > 0 then
local pos = i
-- LogYellow("MonsterGroup.Contents[1][i] "..MonsterGroup.Contents[1][i])
Util.GetGameObject( heroListGo[pos],"Mask"):SetActive(true)
Util.GetGameObject( heroListGo[pos],"StarGrid"):SetActive(true)
Util.GetGameObject( heroListGo[pos],"lv"):SetActive(true)
this.SetCardSingleData(heroListGo[pos],MonsterGroup.Contents[1][i],pos)
heroListGo[pos]:SetActive(true)
else
local pos = i
heroListGo[pos]:SetActive(true)
Util.GetGameObject( heroListGo[pos],"lv/Text"):GetComponent("Text").text=""
Util.GetGameObject( heroListGo[pos],"Mask"):SetActive(false)
Util.GetGameObject( heroListGo[pos],"StarGrid"):SetActive(false)
Util.GetGameObject( heroListGo[pos],"lv"):SetActive(false)
--Util.GetGameObject( heroListGo[pos],"lv/Text"):GetComponent("Text").text=""
end
end
end