diff --git a/src/jlgraphic/plugins/AnimationManager.ts b/src/jlgraphic/plugins/AnimationManager.ts index d783098..fe88038 100644 --- a/src/jlgraphic/plugins/AnimationManager.ts +++ b/src/jlgraphic/plugins/AnimationManager.ts @@ -42,7 +42,7 @@ export class AnimationManager { } destroy() { - this.app.pixi.ticker.remove(this.run, this); + this.app.pixi?.ticker.remove(this.run, this); } /** * 图形对象的所有动画map