diff --git a/src/graphics/turnout/Turnout.ts b/src/graphics/turnout/Turnout.ts index 7cf0924..d6a3e8e 100644 --- a/src/graphics/turnout/Turnout.ts +++ b/src/graphics/turnout/Turnout.ts @@ -216,7 +216,7 @@ export class Turnout extends JlGraphic { } initTurnoutTurning() { // 道岔转动 - const name = 'turnout_turning'; + const name = `${this.datas.id}turnout_turning`; let turnoutTurning = this.animation(name); if (!turnoutTurning) { turnoutTurning = GraphicAnimation.init({ @@ -232,7 +232,7 @@ export class Turnout extends JlGraphic { turnoutTurning.resume(); } stopTurnoutTurning() { - const name = 'turnout_turning'; + const name = `${this.datas.id}turnout_turning`; const turnoutTurning = this.animation(name); if (turnoutTurning) { turnoutTurning.pause();