fix代码格式

This commit is contained in:
2025-05-29 19:15:32 +08:00
parent d5d00fa5ed
commit 6d33a9c8f1
5 changed files with 33 additions and 39 deletions

View File

@@ -24,15 +24,11 @@ export class Main extends Laya.Script {
{ url: respath.trophy_bg_light_gold, type: Laya.Loader.IMAGE },
{ url: respath.trophy_bg_light_grey, type: Laya.Loader.IMAGE }
]
Laya.loader.load(resources,
Laya.Handler.create(this, (success: Object) => { // 第二个参数:成功回调
console.log("预加载资源结束>>>>", success)
}),
Laya.Handler.create(this, (resProg: number) => { // 第三个参数:进度回调
console.log("预加载资源进度>>>>", resProg)
})
)
Laya.loader.load(resources, Laya.Handler.create(this, (success: object) => { // 第二个参数:成功回调
console.log("预加载资源结束>>>>", success)
}), Laya.Handler.create(this, (resProg: number) => { // 第三个参数:进度回调
console.log("预加载资源进度>>>>", resProg)
}))
}
onLateUpdate(): void {