Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_MoTianLun
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
NJ_MoTianLun
Commits
62a439c3
Commit
62a439c3
authored
Jun 24, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 动画
parent
5b2be6ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
NJ_MoTianLun.fire
assets/NJ_MoTianLun/scene/NJ_MoTianLun.fire
+3
-1
NJ_MoTianLun.ts
assets/NJ_MoTianLun/scene/NJ_MoTianLun.ts
+6
-2
No files found.
assets/NJ_MoTianLun/scene/NJ_MoTianLun.fire
View file @
62a439c3
...
@@ -3238,7 +3238,9 @@
...
@@ -3238,7 +3238,9 @@
"_N$hoverSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_N$target": {
"__id__": 64
},
"_id": "38DvLT3M5GEbCCy6xE11be"
"_id": "38DvLT3M5GEbCCy6xE11be"
},
},
{
{
...
...
assets/NJ_MoTianLun/scene/NJ_MoTianLun.ts
View file @
62a439c3
...
@@ -134,14 +134,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -134,14 +134,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
jumpToBundle
(
'
NJ_YouLeChang
'
);
jumpToBundle
(
'
NJ_YouLeChang
'
);
});
});
const
btnMonkey
=
cc
.
find
(
'
Canvas/bg/bg_monkey
'
);
const
happy
=
cc
.
find
(
'
Canvas/bg/happy
'
);
buttonOnClick
(
btnMonkey
,
()
=>
{
const
talk
=
cc
.
find
(
'
Canvas/bg/talk
'
);
buttonOnClick
(
happy
,
()
=>
{
if
(
this
.
playId
)
{
if
(
this
.
playId
)
{
cc
.
audioEngine
.
stop
(
this
.
playId
);
cc
.
audioEngine
.
stop
(
this
.
playId
);
}
}
talk
.
active
=
true
;
cc
.
audioEngine
.
setMusicVolume
(
0.3
);
cc
.
audioEngine
.
setMusicVolume
(
0.3
);
this
.
playId
=
cc
.
audioEngine
.
play
(
this
.
monkyWait
,
null
,
1
);
this
.
playId
=
cc
.
audioEngine
.
play
(
this
.
monkyWait
,
null
,
1
);
cc
.
audioEngine
.
setFinishCallback
(
this
.
playId
,
()
=>
{
cc
.
audioEngine
.
setFinishCallback
(
this
.
playId
,
()
=>
{
talk
.
active
=
false
;
cc
.
audioEngine
.
setMusicVolume
(
1
);
cc
.
audioEngine
.
setMusicVolume
(
1
);
})
})
});
});
...
...
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