fix代码格式
This commit is contained in:
14
src/Main.ts
14
src/Main.ts
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user