【关卡属性提升界面修改】
parent
6ed366ecff
commit
4b289f571b
|
@ -12,6 +12,7 @@ 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")
|
||||||
|
@ -21,6 +22,10 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue