diff --git a/app/ecs-components/ticking.js b/app/ecs-components/ticking.js index 19457ef..b7755c2 100644 --- a/app/ecs-components/ticking.js +++ b/app/ecs-components/ticking.js @@ -14,6 +14,11 @@ export default class Ticking extends Component { }); } + reset() { + this.$$finished = []; + this.$$tickingPromises = []; + } + tick(elapsed) { for (const tickingPromise of this.$$finished) { this.$$tickingPromises.splice(