整理代码格式

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

@@ -1,6 +1,3 @@
export class ResourceManager {
private static instance: ResourceManager
public static getInstance(): ResourceManager {
@@ -9,5 +6,4 @@ export class ResourceManager {
}
return ResourceManager.instance
}
}

View File

@@ -1,8 +1,7 @@
const { regClass, property } = Laya;
const { regClass, property } = Laya
@regClass()
export class Script extends Laya.Script {
@property(Laya.Label)
public title: Laya.Label
@@ -13,7 +12,7 @@ export class Script extends Laya.Script {
public obj_eases: Laya.Box
onAwake(): void {
let list = []
const list: Array<any> = []
list.push(Laya.Ease.backIn)
list.push(Laya.Ease.backInOut)
list.push(Laya.Ease.backOut)

View File

@@ -18,7 +18,6 @@ export class ScoreAdd extends Laya.Script {
}
onStart(): void {
Laya.Tween.to(this.label, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.bounceIn, null, 0)
Laya.Tween.to(this.label, { y: -102 }, 300, Laya.Ease.linearOut, null, 500)

View File

@@ -143,7 +143,6 @@ 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)