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