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