代码调整
This commit is contained in:
parent
bb204dd72a
commit
e1fccdeb2a
@ -274,8 +274,12 @@ export default class Train extends Group {
|
|||||||
|
|
||||||
// 设置车门状态类型
|
// 设置车门状态类型
|
||||||
setDoorStatus(status) {
|
setDoorStatus(status) {
|
||||||
|
if (status != undefined) {
|
||||||
if (status) {
|
if (status) {
|
||||||
|
this.trainB && this.trainB.setDShow(false);
|
||||||
|
} else {
|
||||||
this.trainB && this.trainB.setDShow(true);
|
this.trainB && this.trainB.setDShow(true);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.trainB && this.trainB.setDShow(false);
|
this.trainB && this.trainB.setDShow(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user