Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy01_danci
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
hy01_danci
Commits
d9f7f37f
Commit
d9f7f37f
authored
Sep 18, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据上报方案
parent
140c8476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
hy01_danci.ts
assets/hy01_danci/scene/hy01_danci.ts
+7
-5
No files found.
assets/hy01_danci/scene/hy01_danci.ts
View file @
d9f7f37f
...
...
@@ -321,19 +321,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
layers
.
push
(
outLayer
)
}
cc
.
tween
(
this
.
CurrentLayer
).
to
(
1
/
3
,
{
x
:
2000
}).
start
();
cc
.
tween
(
this
.
CurrentLayer
).
to
(
1
/
3
,
{
x
:
2000
}).
start
();
if
(
this
.
LittleLayer
)
{
cc
.
tween
(
this
.
LittleLayer
).
to
(
1
/
3
,
{
x
:
0
,
y
:
0
,
scale
:
1
}).
start
();
cc
.
tween
(
this
.
LittleLayer
).
to
(
1
/
3
,
{
x
:
0
,
y
:
0
,
scale
:
1
}).
start
();
}
if
(
this
.
OutLayer
)
{
cc
.
tween
(
this
.
OutLayer
).
to
(
1
/
3
,
{
x
:
this
.
layer_word_little
.
x
,
y
:
this
.
layer_word_little
.
y
}).
start
();
cc
.
tween
(
this
.
OutLayer
).
to
(
1
/
3
,
{
x
:
this
.
layer_word_little
.
x
,
y
:
this
.
layer_word_little
.
y
}).
start
();
}
this
.
scheduleOnce
(()
=>
{
this
.
touchForbid
=
false
;
this
.
count
++
;
this
.
maxCurrent
=
Math
.
max
(
this
.
maxCurrent
,
this
.
count
);
this
.
startPlay
();
},
1
/
3
)
},
1
/
3
)
}
replay
()
{
this
.
initData
();
...
...
@@ -363,6 +363,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
gameOver
()
{
this
.
sendData
().
then
(()
=>
{
})
this
.
scheduleOnce
(()
=>
{
pg
.
event
.
once
(
'
layer_ending_touch_replay
'
,
()
=>
{
this
.
replay
();
})
...
...
@@ -370,7 +372,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayer
.
saveGolds
(
this
.
score
);
// 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer
.
goNextPage
();
// 跳转到下一页
// pg.event.emit('layer_ending_show', { coin: this.score })
})
}
,
0.5
)
}
createLayer
()
{
...
...
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