diff --git a/README.md b/README.md index aacb9fa..ac3f8d8 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,12 @@ oops-framework 基于 Cocos Creato 3.x 开发的一款游戏框架 1. 提供游戏常用功能库,提高开发效率 2. 提供业务模块开发的模板,降低程序设计难度 3. 框架内置模块低耦合,可自行删除不需要的模块 +4. 框架提供游戏常用插件工具 + +注: +1. [源库链接更新效率更高](https://gitee.com/dgflash/oops-framework)(好用记得给作者一个Star) +2. Cocos Creato 3.x 不同版的框架在源库分支中下载,master分支为最新引擎版本 +3. 学习交流 QQ 群:798575969 #### 框架使用说明 框架里的技术内容是较多,每项技术作者都用到项目中测试过,所以单项技术的稳定性是相对有保证的。开发者拿到框架按自己当前需求了解需要的技术即可。 @@ -98,9 +104,4 @@ oops-framework 基于 Cocos Creato 3.x 开发的一款游戏框架 #### [新手引导模块 oops-guide](https://store.cocos.com/app/detail/3653) #### [联机游戏框架 oops-mgobe](https://store.cocos.com/app/detail/3574) #### [开源框架 oops-framework gitee](https://gitee.com/dgflash/oops-framework) -#### [开源框架 oops-framework github](https://github.com/dgflash/oops-framework) - -#### 学习交流 QQ 群:798575969 - -#### 注: -Cocos Creator 3.x 不同版本的框架,可在分支中下载 \ No newline at end of file +#### [开源框架 oops-framework github](https://github.com/dgflash/oops-framework) \ No newline at end of file diff --git a/assets/main.scene.meta b/assets/main.scene.meta index 82bb146..4aada67 100644 --- a/assets/main.scene.meta +++ b/assets/main.scene.meta @@ -1,11 +1,9 @@ { "ver": "1.1.38", "importer": "scene", - "imported": true, + "imported": false, "uuid": "ba0b085f-f8d5-40b0-9964-2fd25728d707", - "files": [ - ".json" - ], + "files": [], "subMetas": {}, "userData": {} } diff --git a/assets/script/Main.ts b/assets/script/Main.ts index 21fba35..cb702f7 100644 --- a/assets/script/Main.ts +++ b/assets/script/Main.ts @@ -26,7 +26,5 @@ export class Main extends Root { if (JSB) { oops.gui.toast("热更新后新程序的提示"); } - - // console.log(protobuf); } } diff --git a/assets/script/core/common/loader/ResLoader.ts b/assets/script/core/common/loader/ResLoader.ts index 125d4b8..f4ad78f 100644 --- a/assets/script/core/common/loader/ResLoader.ts +++ b/assets/script/core/common/loader/ResLoader.ts @@ -152,8 +152,17 @@ export default class ResLoader { public loadRemote(url: string, options: IRemoteOptions | null, onComplete?: CompleteCallback | null): void; public loadRemote(url: string, onComplete?: CompleteCallback | null): void; - public loadRemote(url: string, ...args: any): void { - assetManager.loadRemote(url, args); + public loadRemote(url: string, ...args: any): void { + var options: IRemoteOptions | null = null; + var onComplete: CompleteCallback | null = null; + if (args.length == 2) { + options = args[0]; + onComplete = args[1]; + } + else { + onComplete = args[0]; + } + assetManager.loadRemote(url, options, onComplete); } public release(path: string, bundleName: string = "resources") {