列车调整

This commit is contained in:
dong 2024-01-04 16:43:21 +08:00
parent 1a6376096f
commit b99f23cddb
1 changed files with 0 additions and 7 deletions

View File

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