【大闹天宫】上阵纯治疗神将,战斗失败后选择保留状态,报错

dev_chengFeng
zhangqiang 2020-12-24 16:52:46 +08:00
parent cb5e374ebf
commit 95c753a70e
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ function this:InitComponent(gameObject)
this.sureBtnText=Util.GetGameObject(gameObject,"sureBtn/Text"):GetComponent("Text") this.sureBtnText=Util.GetGameObject(gameObject,"sureBtn/Text"):GetComponent("Text")
--滚动条根节点 --滚动条根节点
this.root = Util.GetGameObject(gameObject, "Root") this.root = Util.GetGameObject(gameObject, "Root")
heroListGo = {}
for i = 1, 6 do for i = 1, 6 do
heroListGo[i] = Util.GetGameObject(gameObject, "RoleGrid/Bg"..i.."/Hero"..i) heroListGo[i] = Util.GetGameObject(gameObject, "RoleGrid/Bg"..i.."/Hero"..i)
end end
@ -198,6 +199,7 @@ function this:OnClose()
end end
function this:OnDestroy() function this:OnDestroy()
heroListGo = {}
end end
return this return this