新增entitySystemsEnabled用于控制是否开启系统

This commit is contained in:
yhh
2020-11-26 10:44:28 +08:00
parent 1bb1b8704b
commit 97dfcb4c04
6 changed files with 53 additions and 27 deletions

View File

@@ -22,7 +22,8 @@ module es {
this.entities = new EntityList(this);
this.renderableComponents = new RenderableComponentList();
this.entityProcessors = new EntityProcessorList();
if (Core.entitySystemsEnabled)
this.entityProcessors = new EntityProcessorList();
this.initialize();
}
@@ -136,7 +137,7 @@ module es {
* 只有在SceneTransition请求渲染时它才会有一个值。
*/
public postRender() {
}
/**