mirror of
https://github.com/kirikayakazuto/CocosCreator_ECS
synced 2025-10-30 10:55:48 +00:00
feat: 显示debug区域
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -488,7 +488,7 @@
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": false,
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
|
||||
|
||||
@@ -488,7 +488,7 @@
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": false,
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
|
||||
|
||||
Reference in New Issue
Block a user