代码调整

This commit is contained in:
joylink_cuiweidong 2020-03-06 20:57:24 +08:00
parent bb204dd72a
commit e1fccdeb2a

View File

@ -274,8 +274,12 @@ export default class Train extends Group {
// 设置车门状态类型
setDoorStatus(status) {
if (status != undefined) {
if (status) {
this.trainB && this.trainB.setDShow(false);
} else {
this.trainB && this.trainB.setDShow(true);
}
} else {
this.trainB && this.trainB.setDShow(false);
}