【关卡属性提升】修改提交

dev_chengFeng
zhangqiang 2021-05-29 22:49:43 +08:00
parent acfc98c16f
commit 2c27d19046
1 changed files with 1 additions and 5 deletions

View File

@ -12,7 +12,6 @@ this.timer = Timer.New()
function this:InitComponent(gameObject) function this:InitComponent(gameObject)
this.spLoader = SpriteLoader.New() this.spLoader = SpriteLoader.New()
this.backBtn=Util.GetGameObject(gameObject,"bg/backBtn") this.backBtn=Util.GetGameObject(gameObject,"bg/backBtn")
this.backBtn:SetActive(true)
this.Root=Util.GetGameObject(gameObject,"Root") this.Root=Util.GetGameObject(gameObject,"Root")
this.proPre=Util.GetGameObject(gameObject,"proPre") this.proPre=Util.GetGameObject(gameObject,"proPre")
this.shengxingIma=Util.GetGameObject(gameObject,"bg/shengxing"):GetComponent("Image") this.shengxingIma=Util.GetGameObject(gameObject,"bg/shengxing"):GetComponent("Image")
@ -22,10 +21,6 @@ end
function this:BindEvent() function this:BindEvent()
Util.AddClick(this.backBtn,function() Util.AddClick(this.backBtn,function()
parent:ClosePanel() parent:ClosePanel()
if this.timer then
this.timer:Stop()
this.timer = nil
end
end) end)
end end
@ -105,6 +100,7 @@ function this:OnClose()
this.timer:Stop() this.timer:Stop()
this.timer = nil this.timer = nil
end end
parent:ClosePanel()
end end
function this:OnDestroy() function this:OnDestroy()