新增entityprocessor管理实体解析器

This commit is contained in:
YHH
2020-06-08 21:53:09 +08:00
parent a048a8ac29
commit 11af0a31a7
17 changed files with 386 additions and 66 deletions

View File

@@ -69,7 +69,7 @@ class EntityList{
this._entities.remove(entity);
entity.scene = null;
this.scene.entityProcessors.forEach(processor => processor.remove(entity));
this.scene.entityProcessors.onEntityRemoved(entity);
});
this._tempEntityList.length = 0;
@@ -83,7 +83,7 @@ class EntityList{
this._entities.push(entity);
entity.scene = this.scene;
this.scene.entityProcessors.forEach(processor => processor.onChanged(entity));
this.scene.entityProcessors.onEntityAdded(entity)
});
this._tempEntityList.length = 0;