整理代码格式

This commit is contained in:
2025-06-05 10:34:58 +08:00
parent 55427c473a
commit 10333a3bdc
4 changed files with 67 additions and 74 deletions

View File

@@ -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)
})