(previousScene: Scene | null = null)
| 272 | } |
| 273 | |
| 274 | public async reset(previousScene: Scene | null = null) { |
| 275 | this.counters = {}; |
| 276 | this.previousScene = previousScene; |
| 277 | this.previousOnTop = false; |
| 278 | this.runner = threads( |
| 279 | () => this.runnerFactory(this.getView()), |
| 280 | thread => { |
| 281 | this.thread.current = thread; |
| 282 | }, |
| 283 | ); |
| 284 | this.state = SceneState.AfterTransitionIn; |
| 285 | this.afterReset.dispatch(); |
| 286 | await this.next(); |
| 287 | } |
| 288 | |
| 289 | public getSize(): Vector2 { |
| 290 | return this.size; |