mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[phaser] Update for 3.60.0 release.
This commit is contained in:
parent
889148cd97
commit
aa1064b83b
@ -130,11 +130,11 @@ export class SpinePlugin extends Phaser.Plugins.ScenePlugin {
|
|||||||
this.game.scale.on(Phaser.Scale.Events.RESIZE, this.onResize, this);
|
this.game.scale.on(Phaser.Scale.Events.RESIZE, this.onResize, this);
|
||||||
} else {
|
} else {
|
||||||
if (!this.canvasRenderer) {
|
if (!this.canvasRenderer) {
|
||||||
this.canvasRenderer = new SkeletonRenderer(this.scene.sys.context);
|
this.canvasRenderer = new SkeletonRenderer(this.scene!.sys.context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var eventEmitter = this.systems.events;
|
var eventEmitter = this.systems!.events;
|
||||||
eventEmitter.once('shutdown', this.shutdown, this);
|
eventEmitter.once('shutdown', this.shutdown, this);
|
||||||
eventEmitter.once('destroy', this.destroy, this);
|
eventEmitter.once('destroy', this.destroy, this);
|
||||||
this.game.events.once('destroy', this.gameDestroy, this);
|
this.game.events.once('destroy', this.gameDestroy, this);
|
||||||
@ -156,7 +156,7 @@ export class SpinePlugin extends Phaser.Plugins.ScenePlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shutdown () {
|
shutdown () {
|
||||||
this.systems.events.off("shutdown", this.shutdown, this);
|
this.systems!.events.off("shutdown", this.shutdown, this);
|
||||||
if (this.isWebGL) {
|
if (this.isWebGL) {
|
||||||
this.game.scale.off(Phaser.Scale.Events.RESIZE, this.onResize, this);
|
this.game.scale.off(Phaser.Scale.Events.RESIZE, this.onResize, this);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user