This commit is contained in:
sunzhenyu 2020-01-20 18:08:23 +08:00
parent 12dab4eea4
commit d6cd6c1e3e
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ export function RailListN(){
};
// this.init = function(section,linklist,scene){
this.init = function(section,sectionList,switchdata,scene){
console.log(section);
console.log(switchdata);
// console.log(section);
// console.log(switchdata);
for(let i=0;i<section.length;i++){
scope.sectionrail[section[i].code] = {
lp:section[i].lp,

View File

@ -18,7 +18,7 @@ export function SectionListN() {
this.standtrack = [];
var autorail;
this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
console.log(sectiondata);
// console.log(sectiondata);
for(let i=0;i<assetloader.modellist.length;i++){
if(assetloader.modellist[i].deviceType == "autorail"){
autorail = assetloader.modellist[i].mesh.children[0];
@ -39,7 +39,7 @@ this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
autorail.leftlist = leftlist;
scene.add(scope.sectiongroup);
return new Promise(function(resolve, reject){
console.log(sectiondata);
// console.log(sectiondata);
for(let i=0,leni = sectiondata.length;i<leni;i++){
let newsection = {
code:sectiondata[i].code,