代码调整
This commit is contained in:
parent
8533a71dbc
commit
53b160e65c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user