预加载资源
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user