File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
engine/modules/endscreen/src/main/resources/view/endscreen-module Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import {WIDTH, HEIGHT} from '../core/constants.js'
22import { lerp , unlerp } from '../core/utils.js'
33import { ErrorLog } from '../core/ErrorLog.js'
44import { MissingImageError } from './errors/MissingImageError.js'
5-
5+ import { flagForDestructionOnReinit } from '../core/rendering.js'
66/* global PIXI */
77
88export class EndScreenModule {
@@ -49,7 +49,6 @@ export class EndScreenModule {
4949 }
5050
5151 reinitScene ( container , canvasData ) {
52- this . toDestroy = [ ]
5352 this . container = container
5453 this . endLayer = this . createEndScene ( this )
5554 if ( this . atEnd ) {
@@ -137,8 +136,8 @@ export class EndScreenModule {
137136 fill : color
138137 } )
139138 textEl . lineHeight = Math . round ( size / 1.2 )
140- this . toDestroy . push ( textEl )
141139 }
140+ flagForDestructionOnReinit ( textEl )
142141 if ( align === 'right' ) {
143142 textEl . anchor . x = 1
144143 } else if ( align === 'center' ) {
You can’t perform that action at this time.
0 commit comments