Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_game_select
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
NJ_game_select
Commits
fc59198b
Commit
fc59198b
authored
Aug 10, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: 检测放过
parent
862e8ffb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
NJ_game_select.ts
assets/NJ_game_select/scene/NJ_game_select.ts
+7
-1
No files found.
assets/NJ_game_select/scene/NJ_game_select.ts
View file @
fc59198b
...
...
@@ -37,6 +37,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
startStep1
()
{
await
this
.
asyncPlayAudioByUrl
(
this
.
data
.
pageArr
[
this
.
currentPageIdx
].
startAudio
);
let
testCount
=
0
;
const
circulate
=
async
()
=>
{
await
asyncDelay
(
0.3
);
const
circle
=
cc
.
find
(
'
Canvas/step1/pad/circle
'
);
...
...
@@ -54,7 +55,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
showTips
(
`未检测到对应页面`
);
bar
.
progress
=
1
;
circle
.
active
=
false
;
testCount
++
;
if
(
testCount
<
10
)
{
await
circulate
();
}
else
{
this
.
showTips
(
`检测超时`
);
}
}
}
await
circulate
();
...
...
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