Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy17_hds
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
hy17_hds
Commits
0c103f01
Commit
0c103f01
authored
Nov 20, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据上报逻辑
parent
1e36a153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
hy17_hds.ts
assets/hy17_hds/scene/hy17_hds.ts
+4
-5
No files found.
assets/hy17_hds/scene/hy17_hds.ts
View file @
0c103f01
...
...
@@ -437,15 +437,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
}
gameOver
()
{
this
.
sendData
().
then
(()
=>
{
})
pg
.
event
.
clear
();
this
.
scheduleOnce
(()
=>
{
this
.
sendData
().
then
(()
=>
{
pg
.
event
.
clear
();
pg
.
view
.
visible
(
this
.
sentence_box
,
false
)
// 下一页
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
).
getComponent
(
'
middleLayer
'
);
middleLayer
.
saveGolds
(
this
.
score
);
// 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer
.
goNextPage
();
// 跳转到下一页
}
,
0.5
)
middleLayer
.
goNextPage
();
// 跳转到下一页
})
}
}
...
...
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