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'
2
2
import { lerp , unlerp } from '../core/utils.js'
3
3
import { ErrorLog } from '../core/ErrorLog.js'
4
4
import { MissingImageError } from './errors/MissingImageError.js'
5
-
5
+ import { flagForDestructionOnReinit } from '../core/rendering.js'
6
6
/* global PIXI */
7
7
8
8
export class EndScreenModule {
@@ -49,7 +49,6 @@ export class EndScreenModule {
49
49
}
50
50
51
51
reinitScene ( container , canvasData ) {
52
- this . toDestroy = [ ]
53
52
this . container = container
54
53
this . endLayer = this . createEndScene ( this )
55
54
if ( this . atEnd ) {
@@ -137,8 +136,8 @@ export class EndScreenModule {
137
136
fill : color
138
137
} )
139
138
textEl . lineHeight = Math . round ( size / 1.2 )
140
- this . toDestroy . push ( textEl )
141
139
}
140
+ flagForDestructionOnReinit ( textEl )
142
141
if ( align === 'right' ) {
143
142
textEl . anchor . x = 1
144
143
} else if ( align === 'center' ) {
You can’t perform that action at this time.
0 commit comments