Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
92739795
Commit
92739795
authored
Dec 31, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
afd55c76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-0
No files found.
egret/src/mainScene/MainScene.ts
View file @
92739795
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment