【点将台】报错修改提交

dev_chengFeng
ZhangBiao 2021-07-16 16:54:17 +08:00
parent 8aeb433618
commit 309486e443
1 changed files with 16 additions and 11 deletions

View File

@ -343,22 +343,22 @@ function this:SetIndex()
LOY = 3
else
LOY = 2
end
local offSet = math.abs(this.itemList[i].index - 2)
local isenter = true
self.thread = coroutine.start(function()
while(offSet > 0) do
end
local offSet = math.abs(this.itemList[i].index - 2)
local isenter = true
self.thread = coroutine.start(function()
while(offSet > 0) do
if isenter then
isenter = false
this.mask:SetActive(true)
this.MoveTo(LOY)
Timer.New(function()
offSet = offSet - 1
offSet = offSet - 1
this.SortItemList()
isenter = true
end,0.25):Start()
end
coroutine.wait(0.01)
end,0.25):Start()
end
coroutine.wait(0.01)
end
this.mask:SetActive(false)
this.select.transform:SetParent(this.itemList[2].go.transform)
@ -377,7 +377,7 @@ function this:PageOnChange()
RecruitManager.CurRecruitId = self.CurRecruitId
if subViewList[lastIndex] and subViewList[lastIndex].config and subViewList[lastIndex].sub then
subViewList[lastIndex].sub:OnClose()
end
end
if subViewList[self.curPage] and subViewList[self.curPage].config and subViewList[self.curPage].sub then
subViewList[self.curPage].sub:OnShow(orginLayer)
else
@ -434,7 +434,12 @@ end
--界面关闭时调用(用于子类重写)
function RecruitMainPanel:OnClose()
--清除红点
--清除红点
this.select.transform:SetParent(this.tabbox.transform)
if self.thread then
coroutine.stop(self.thread)
self.thread = nil
end
for k,v in pairs(redPointTypeList) do
ClearRedPointObject(k,v)
end