预加载资源

This commit is contained in:
2025-05-30 17:24:35 +08:00
parent 2b4ff0638b
commit 220d109058

View File

@@ -14,6 +14,8 @@ export class Main extends Laya.Script {
StorageManager.getInstance().init()
const resources: Array<{ url: string, type?: any, lazy?: boolean }> = [
{ url: respath.score_add_ui_res()},
{ url: respath.home_top_dc_bg_normal, type: Laya.Loader.IMAGE },
{ url: respath.home_top_dc_bg_finish, type: Laya.Loader.IMAGE },
{ url: respath.dc_top_bg_normal, type: Laya.Loader.IMAGE },