修改三维客流列车人物动画
This commit is contained in:
parent
e26c6dc080
commit
cbc7a2d3fe
@ -316,27 +316,25 @@ export function Jl3dTrafficTrain(dom,skinCode,routegroup,viewMap,initCode) {
|
||||
|
||||
|
||||
this.updateTrainData = function(newData){
|
||||
if(scope.trainList.length > 0){
|
||||
for(let i=0;i<scope.trainList.length;i++){
|
||||
if(newData.code == scope.trainList[i].code){
|
||||
scope.trainList[i].num = scope.trainList[i].num + newData.in - newData.out;
|
||||
console.log(newData);
|
||||
console.log(scope.trainList);
|
||||
let i = newData.code;
|
||||
if(scope.trainList[i]){
|
||||
scope.trainList[i].num = scope.trainList[i].num + newData.in - newData.out;
|
||||
|
||||
if(passerTrain.toptrain.nowcode == newData.code){
|
||||
scope.humanWaitIn = getnum(newData.in,6);
|
||||
scope.humanWaitOut = getnum(newData.out,6);
|
||||
// console.log(scope.humanWaitIn);
|
||||
// console.log(scope.humanWaitOut);
|
||||
// console.log(nowLeaveDoor);
|
||||
// console.log("------------------");
|
||||
passerHuman.initTrainRail(humanlist,scope.humanWaitIn,scope.humanWaitOut,nowLeaveDoor);
|
||||
if(passerTrain.toptrain.nowcode == newData.code){
|
||||
scope.humanWaitIn = getnum(newData.in,6);
|
||||
scope.humanWaitOut = getnum(newData.out,6);
|
||||
// console.log(scope.humanWaitIn);
|
||||
// console.log(scope.humanWaitOut);
|
||||
// console.log(nowLeaveDoor);
|
||||
// console.log("------------------");
|
||||
passerHuman.initTrainRail(humanlist,scope.humanWaitIn,scope.humanWaitOut,nowLeaveDoor);
|
||||
|
||||
let trainDataList = getnum(scope.trainList[i].num,6);
|
||||
// nowTrunk.code = newCode;
|
||||
scope.nowTrunk.numList = trainDataList;
|
||||
updateTrainNum(trainDataList);
|
||||
}
|
||||
i = scope.trainList.length;
|
||||
}
|
||||
let trainDataList = getnum(scope.trainList[i].num,6);
|
||||
// nowTrunk.code = newCode;
|
||||
scope.nowTrunk.numList = trainDataList;
|
||||
updateTrainNum(trainDataList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user