代码调整

This commit is contained in:
dong 2023-09-28 17:10:39 +08:00
parent 8533a71dbc
commit 53b160e65c

View File

@ -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();