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
a100fd06
Commit
a100fd06
authored
Jul 17, 2023
by
Tt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://vcs.ireadabc.com/template/hy01_danci
parents
e27a1049
dd3b47f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
hy01_danci.fire
assets/hy01_danci/scene/hy01_danci.fire
+2
-2
hy01_danci.ts
assets/hy01_danci/scene/hy01_danci.ts
+4
-1
No files found.
assets/hy01_danci/scene/hy01_danci.fire
View file @
a100fd06
...
@@ -3812,7 +3812,7 @@
...
@@ -3812,7 +3812,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
52.6
,
"width": 1
48.45
,
"height": 63
"height": 63
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -3898,7 +3898,7 @@
...
@@ -3898,7 +3898,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
2
10.81399999999996
,
2
06.664
,
0,
0,
0,
0,
0,
0,
...
...
assets/hy01_danci/scene/hy01_danci.ts
View file @
a100fd06
...
@@ -345,7 +345,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -345,7 +345,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
once
(
'
layer_ending_touch_replay
'
,
()
=>
{
pg
.
event
.
once
(
'
layer_ending_touch_replay
'
,
()
=>
{
this
.
replay
();
this
.
replay
();
})
})
pg
.
event
.
emit
(
'
layer_ending_show
'
,
{
coin
:
this
.
score
})
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
).
getComponent
(
'
middleLayer
'
);
middleLayer
.
saveGolds
(
this
.
score
);
// 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer
.
goNextPage
();
// 跳转到下一页
// pg.event.emit('layer_ending_show', { coin: this.score })
}
}
createLayer
()
{
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