From c2e3da2e7c0822a564951e44b544860dbdd06eb2 Mon Sep 17 00:00:00 2001 From: honmono <1099263878@qq.com> Date: Sat, 22 Oct 2022 10:43:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=98=BE=E7=A4=BAdebug=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Core/RoleEventProcess.ts | 11 ++++++----- assets/Script/Main.ts | 4 ++-- assets/resources/Biker/Biker.prefab | 2 +- assets/resources/Cyborg/Cyborg.prefab | 2 +- project.json | 2 +- settings/project.json | 5 ++++- 6 files changed, 15 insertions(+), 11 deletions(-) diff --git a/assets/Script/Core/RoleEventProcess.ts b/assets/Script/Core/RoleEventProcess.ts index c45210e..e0da0e2 100644 --- a/assets/Script/Core/RoleEventProcess.ts +++ b/assets/Script/Core/RoleEventProcess.ts @@ -59,11 +59,12 @@ export default class RoleEventProcess extends EventProcess { break; case EventType.GraphicsDraw: - // if(cc.debug.isDisplayStats()) { - // this._graphicsDraw(event as EventGraphicsDraw); - // }else { - // this._graphicsDraw(null); - // } + if(cc.debug.isDisplayStats()) { + console.log('=====') + this._graphicsDraw(event as EventGraphicsDraw); + }else { + this._graphicsDraw(null); + } break; diff --git a/assets/Script/Main.ts b/assets/Script/Main.ts index 6b8281b..701128d 100644 --- a/assets/Script/Main.ts +++ b/assets/Script/Main.ts @@ -40,13 +40,13 @@ export default class Main extends cc.Component { } onClick1() { - for(let i=0; i<10; i++) { + for(let i=0; i<1; i++) { this.ecsController.createRoleEntity("Biker"); } } onClick2() { - for(let i=0; i<10; i++) { + for(let i=0; i<1; i++) { this.ecsController.createRoleEntity("Cyborg"); } } diff --git a/assets/resources/Biker/Biker.prefab b/assets/resources/Biker/Biker.prefab index 5d2bb0e..5a713b2 100644 --- a/assets/resources/Biker/Biker.prefab +++ b/assets/resources/Biker/Biker.prefab @@ -488,7 +488,7 @@ "node": { "__id__": 1 }, - "_enabled": false, + "_enabled": true, "_materials": [ { "__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57" diff --git a/assets/resources/Cyborg/Cyborg.prefab b/assets/resources/Cyborg/Cyborg.prefab index 16a423f..a178ec2 100644 --- a/assets/resources/Cyborg/Cyborg.prefab +++ b/assets/resources/Cyborg/Cyborg.prefab @@ -488,7 +488,7 @@ "node": { "__id__": 1 }, - "_enabled": false, + "_enabled": true, "_materials": [ { "__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57" diff --git a/project.json b/project.json index ee4f563..e1f903e 100755 --- a/project.json +++ b/project.json @@ -1,7 +1,7 @@ { "engine": "cocos2d-html5", "packages": "packages", - "version": "2.4.8", + "version": "2.4.9", "name": "ECSFrame_Work", "id": "acf06e68-60ad-4ecd-9d00-d655e4dcbc5b", "isNew": false diff --git a/settings/project.json b/settings/project.json index e10a69e..6b36411 100755 --- a/settings/project.json +++ b/settings/project.json @@ -31,5 +31,8 @@ "audience": { "enable": false } - } + }, + "migrate-history": [ + "cloud-function" + ] }