Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c

dev_chengFeng
jiaoyangna 2021-05-29 15:06:55 +08:00
commit bccdcf6a98
1 changed files with 5 additions and 0 deletions

View File

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