Commit 92739795 authored by wildfirecode's avatar wildfirecode

1

parent afd55c76
...@@ -508,6 +508,8 @@ export default class MainScene extends Scene { ...@@ -508,6 +508,8 @@ export default class MainScene extends Scene {
initConnectedLats(){ initConnectedLats(){
if(!this.chapterData.map.connectedLats) return; if(!this.chapterData.map.connectedLats) return;
for (let index = 0; index < this.chapterData.map.connectedLats.length; index++) { for (let index = 0; index < this.chapterData.map.connectedLats.length; index++) {
const item= this.chapterData.map.connectedLats[index];
if(!item || item.length <= 0) continue;
const [p1,p2] = this.chapterData.map.connectedLats[index]; const [p1,p2] = this.chapterData.map.connectedLats[index];
const funcIndex = index % 10; const funcIndex = index % 10;
var [x1,y1] = Tool.getPositionByIndex(p1); var [x1,y1] = Tool.getPositionByIndex(p1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment