From b99f23cddb47626ab9c9502b27d30652d9414e48 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Thu, 4 Jan 2024 16:43:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/Train/Train.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/packages/Train/Train.ts b/src/packages/Train/Train.ts index 8393e0b..9d8baba 100644 --- a/src/packages/Train/Train.ts +++ b/src/packages/Train/Train.ts @@ -19,7 +19,6 @@ class TrainHead extends Container { arrow: Graphics; // 列车箭头 pause: Graphics; // 列车停止 train: Train; - isStop: boolean; arrowColor: string; pauseColor: string; constructor(train: Train) { @@ -29,7 +28,6 @@ class TrainHead extends Container { this.addChild(this.arrow); this.addChild(this.pause); this.train = train; - this.isStop = true; this.arrowColor = this.train.constDatas.arrowDefaultColor; this.pauseColor = this.train.constDatas.pauseDefaultColor; } @@ -256,11 +254,6 @@ export class Train extends JlGraphic { this.trainHead.doRepaint(); } - // 设置列车是否显示停止 - setIsStop(v: boolean) { - this.trainHead.isStop = v; - } - // 设置列车箭头是否显示 setArrowVisible(v: boolean) { this.trainHead.arrow.visible = v;