代码调整
This commit is contained in:
parent
8590226c29
commit
8129c1222b
@ -216,7 +216,7 @@ export class Turnout extends JlGraphic {
|
||||
}
|
||||
initTurnoutTurning() {
|
||||
// 道岔转动
|
||||
const name = `${this.datas.id}turnout_turning`;
|
||||
const name = '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 = `${this.datas.id}turnout_turning`;
|
||||
const name = 'turnout_turning';
|
||||
const turnoutTurning = this.animation(name);
|
||||
if (turnoutTurning) {
|
||||
turnoutTurning.pause();
|
||||
|
Loading…
Reference in New Issue
Block a user