【我要变强】切换页签报错

dev_chengFeng
gaoxin 2021-11-08 11:20:30 +08:00
parent 0fc2ec5b08
commit 82dd1b6512
1 changed files with 10 additions and 9 deletions

View File

@ -58,9 +58,9 @@ function TempPool:RecycleAll()
end
end
function TempPool:Destroy()
self.MomNode = nil
self.NodeList = nil
self.UsedIndex = nil
self.MomNode = {}
self.NodeList = {}
self.UsedIndex = {}
end
-- 按钮开闭状态改变
@ -148,12 +148,6 @@ function GiveMePowerPanel:BindEvent()
end)
end
-- 初始化Tab管理器
this.TabCtrl = TabBox.New()
this.TabCtrl:SetTabAdapter(this.TabAdapter)
this.TabCtrl:SetChangeTabCallBack(this.OnTabChange)
this.TabCtrl:Init(this.tabbox, _TabData)
-- 初始化对象池
TempPool:Init()
--TempPool:Register("res1", this.resItem1)
@ -590,6 +584,13 @@ function GiveMePowerPanel:OnOpen(...)
-- 检测任务
-- UKnowNothingToThePowerManager.CheckTask()
--
-- 初始化Tab管理器
this.TabCtrl = TabBox.New()
this.TabCtrl:SetTabAdapter(this.TabAdapter)
this.TabCtrl:SetChangeTabCallBack(this.OnTabChange)
this.TabCtrl:Init(this.tabbox, _TabData)
if this.TabCtrl then
this.TabCtrl:ChangeTab(1)
end