Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy05_pintu
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
hy05_pintu
Commits
d111e9d4
Commit
d111e9d4
authored
Oct 08, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
92f79ad4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
328 additions
and
198 deletions
+328
-198
hy05_pintu.fire
assets/hy05_pintu/scene/hy05_pintu.fire
+323
-197
hy05_pintu.ts
assets/hy05_pintu/scene/hy05_pintu.ts
+5
-1
No files found.
assets/hy05_pintu/scene/hy05_pintu.fire
View file @
d111e9d4
This diff is collapsed.
Click to expand it.
assets/hy05_pintu/scene/hy05_pintu.ts
View file @
d111e9d4
...
...
@@ -315,6 +315,10 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
return
;
}
if
(
itemBg
&&
itemBg
.
sortId
==
data
.
id
)
{
target
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
onItemTouchStart
,
this
);
target
.
off
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onItemTouchMove
,
this
);
target
.
off
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onItemTouchEnd
,
this
);
target
.
off
(
cc
.
Node
.
EventType
.
TOUCH_CANCEL
,
this
.
onItemTouchCancel
,
this
);
// let rightBg0 = cc.find("rightBg0", itemBg);
// let rightBg1 = cc.find("rightBg1", itemBg);
// rightBg0.active = true;
...
...
@@ -409,7 +413,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
// pg.event.emit('layer_ending_show', { coin: this.coin })
const
midd
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
midd
)
return
this
.
log
(
"
no middleLayer
"
);
this
.
sendData
(
this
.
coin
).
then
(()
=>
{
this
.
sendData
(
this
.
coin
).
then
(()
=>
{
let
middleLayer
=
midd
.
getComponent
(
'
middleLayer
'
);
middleLayer
.
saveGolds
(
this
.
coin
);
// 保存金币数量;num 是获得金币的数量,数字类型;
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