Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tx_find_match
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
tx_find_match
Commits
a59f560b
Commit
a59f560b
authored
Mar 15, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
ae8d4aaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
tx_find_match.js
assets/tx_find_match/scene/tx_find_match.js
+12
-10
No files found.
assets/tx_find_match/scene/tx_find_match.js
View file @
a59f560b
...
...
@@ -1186,21 +1186,23 @@ cc.Class({
},
startTiming
()
{
const
cw
=
window
.
courseware
;
if
(
!
cw
||
!
cw
.
startTiming
)
{
return
;
}
cw
.
startTiming
();
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
startTiming
();
}
},
showResultPanel
()
{
const
cw
=
window
.
courseware
;
if
(
!
cw
||
!
cw
.
showResultPanel
)
{
return
;
console
.
log
(
'
show resultPanel
'
)
console
.
log
(
'
show resultPanel rankingType
'
+
this
.
data
.
rankingType
)
console
.
log
(
'
show resultPanel score
'
+
this
.
score
)
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
showResultLayer
(
this
.
data
.
rankingType
,
this
.
score
);
}
cw
.
showResultPanel
(
null
,
this
.
score
);
},
...
...
@@ -1415,7 +1417,7 @@ cc.Class({
star
.
opacity
=
255
;
const
time
=
60
;
cc
.
tween
(
star
)
.
by
(
time
,
{
x
:
targetPos
.
x
,
y
:
targetPos
.
y
,
rotation
:
rSpeed
*
edgeLen
})
.
by
(
time
,
{
x
:
targetPos
.
x
,
y
:
targetPos
.
y
,
angle
:
-
rSpeed
*
edgeLen
})
.
call
(()
=>
{
this
.
starPoolArr
.
push
(
star
);
star
.
opacity
=
0
;
...
...
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