整理代码格式
This commit is contained in:
@@ -143,12 +143,11 @@ export class Stage extends Laya.Script {
|
||||
this.btn_hint_ad = this.btn_hint.getChildByName("Image").getChildByName("ad") as Laya.Box
|
||||
this.btn_hint_label = this.btn_hint.getChildByName("Image").getChildByName("normal").getChildByName("label") as Laya.Label
|
||||
|
||||
|
||||
//失去舞台焦点(切出游戏)的处理
|
||||
// 失去舞台焦点(切出游戏)的处理
|
||||
Laya.stage.on(Laya.Event.BLUR, this, () => {
|
||||
Stage.EventUpdatePause(true)
|
||||
})
|
||||
//获得舞台焦点(切回游戏)的处理
|
||||
// 获得舞台焦点(切回游戏)的处理
|
||||
Laya.stage.on(Laya.Event.FOCUS, this, () => {
|
||||
Stage.EventUpdatePause(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user