tcx_xiyou_yueNan
zhangjiannan 2026-09-20 10:54:08 +08:00
parent 4b6f92a880
commit d5f6f95e42
1 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ function GodsWayTowerPanel:OnShow()
-- end
end
function this.SingleDataShow(go, data)
function GodsWayTowerPanel:SingleDataShow(go, data)
local singledata = GodsWaySingleSingleWave:New(go)
--go:GetComponent("RectTransform").sizeDelta=Vector2.New(screenwidth,380)
singledata:InitComponent(go, data, curType,self.sortingOrder +1 )
@ -311,7 +311,7 @@ function this.InitMonsterShow()
LogError("monsterInfo==" .. #monsterInfo)
table.sort(monsterInfo, function(a, b) return a.wave > b.wave end)
this.scrollView:SetData(monsterInfo, function(index, go)
local tempData = this.SingleDataShow(go, monsterInfo[index])
local tempData = this:SingleDataShow(go, monsterInfo[index])
this.singledataList[monsterInfo[index].wave] = tempData
--this.singlePreList[go] = this.singledataList[monsterInfo[index].wave]
end, true, true)