新增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

@@ -34,7 +34,8 @@ module es {
this.name = name;
this.id = Entity._idGenerator++;
this.componentBits = new BitSet();
if (Core.entitySystemsEnabled)
this.componentBits = new BitSet();
}
public _isDestroyed: boolean;