mirror of
https://github.com/kirikayakazuto/CocosCreator_ECS
synced 2024-12-25 03:09:21 +00:00
feat: 显示debug区域
This commit is contained in:
parent
fdb002d00a
commit
c2e3da2e7c
@ -59,11 +59,12 @@ export default class RoleEventProcess extends EventProcess {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EventType.GraphicsDraw:
|
case EventType.GraphicsDraw:
|
||||||
// if(cc.debug.isDisplayStats()) {
|
if(cc.debug.isDisplayStats()) {
|
||||||
// this._graphicsDraw(event as EventGraphicsDraw);
|
console.log('=====')
|
||||||
// }else {
|
this._graphicsDraw(event as EventGraphicsDraw);
|
||||||
// this._graphicsDraw(null);
|
}else {
|
||||||
// }
|
this._graphicsDraw(null);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -40,13 +40,13 @@ export default class Main extends cc.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClick1() {
|
onClick1() {
|
||||||
for(let i=0; i<10; i++) {
|
for(let i=0; i<1; i++) {
|
||||||
this.ecsController.createRoleEntity("Biker");
|
this.ecsController.createRoleEntity("Biker");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClick2() {
|
onClick2() {
|
||||||
for(let i=0; i<10; i++) {
|
for(let i=0; i<1; i++) {
|
||||||
this.ecsController.createRoleEntity("Cyborg");
|
this.ecsController.createRoleEntity("Cyborg");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -488,7 +488,7 @@
|
|||||||
"node": {
|
"node": {
|
||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_enabled": false,
|
"_enabled": true,
|
||||||
"_materials": [
|
"_materials": [
|
||||||
{
|
{
|
||||||
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
|
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
|
||||||
|
@ -488,7 +488,7 @@
|
|||||||
"node": {
|
"node": {
|
||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_enabled": false,
|
"_enabled": true,
|
||||||
"_materials": [
|
"_materials": [
|
||||||
{
|
{
|
||||||
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
|
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"engine": "cocos2d-html5",
|
"engine": "cocos2d-html5",
|
||||||
"packages": "packages",
|
"packages": "packages",
|
||||||
"version": "2.4.8",
|
"version": "2.4.9",
|
||||||
"name": "ECSFrame_Work",
|
"name": "ECSFrame_Work",
|
||||||
"id": "acf06e68-60ad-4ecd-9d00-d655e4dcbc5b",
|
"id": "acf06e68-60ad-4ecd-9d00-d655e4dcbc5b",
|
||||||
"isNew": false
|
"isNew": false
|
||||||
|
@ -31,5 +31,8 @@
|
|||||||
"audience": {
|
"audience": {
|
||||||
"enable": false
|
"enable": false
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"migrate-history": [
|
||||||
|
"cloud-function"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user