初始化只在系统真正开始工作时执行
This commit is contained in:
@@ -77,7 +77,6 @@ export abstract class EntitySystem implements ISystemBase {
|
|||||||
constructor(matcher?: Matcher) {
|
constructor(matcher?: Matcher) {
|
||||||
this._matcher = matcher ? matcher : Matcher.empty();
|
this._matcher = matcher ? matcher : Matcher.empty();
|
||||||
this._systemName = this.constructor.name;
|
this._systemName = this.constructor.name;
|
||||||
this.initialize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private _scene!: Scene;
|
private _scene!: Scene;
|
||||||
|
|||||||
Reference in New Issue
Block a user