- const originalSystemLength = this.engine.systems.length;
- const originalRemoved = this.engine.removeSystem(this.lowPrioritySystem);
- const intermediateSystemLength = this.engine.systems.length;
- const finalRemoved = this.engine.removeSystem(this.lowPrioritySystem);
- const finalSystemLength = this.engine.systems.length;
- this.engine.update(internals.delta);
+ const originalSystemLength = internals.context.engine.systems.length;
+ const originalRemoved = internals.context.engine.removeSystem(internals.context.lowPrioritySystem);
+ const intermediateSystemLength = internals.context.engine.systems.length;
+ const finalRemoved = internals.context.engine.removeSystem(internals.context.lowPrioritySystem);
+ const finalSystemLength = internals.context.engine.systems.length;
+ internals.context.engine.update(internals.delta);