Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_01
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
et_01
Commits
aef1b834
Commit
aef1b834
authored
Feb 23, 2021
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加自动进入播放骨骼动画
parent
a0fc698a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
et_01.fire
play/assets/et_01/scene/et_01.fire
+1
-1
et_01.js
play/assets/et_01/script/et_01.js
+8
-7
No files found.
play/assets/et_01/scene/et_01.fire
View file @
aef1b834
...
@@ -730,7 +730,7 @@
...
@@ -730,7 +730,7 @@
"_animationName": "finishdragon",
"_animationName": "finishdragon",
"_preCacheMode": 0,
"_preCacheMode": 0,
"_cacheMode": 0,
"_cacheMode": 0,
"playTimes":
-
1,
"playTimes": 1,
"premultipliedAlpha": false,
"premultipliedAlpha": false,
"_armatureKey": "e5113a64-f76c-4d4f-a04d-f45ceb42c0be#1a65d967-5f21-47a9-9791-5df3e1da7041",
"_armatureKey": "e5113a64-f76c-4d4f-a04d-f45ceb42c0be#1a65d967-5f21-47a9-9791-5df3e1da7041",
"_accTime": 0,
"_accTime": 0,
...
...
play/assets/et_01/script/et_01.js
View file @
aef1b834
...
@@ -83,7 +83,7 @@ cc.Class({
...
@@ -83,7 +83,7 @@ cc.Class({
getDefaultData
()
{
getDefaultData
()
{
const
dataJson
=
'
{"animationName":"
WarmUp
"}
'
const
dataJson
=
'
{"animationName":"
Greetings
"}
'
const
data
=
JSON
.
parse
(
dataJson
);
const
data
=
JSON
.
parse
(
dataJson
);
return
data
;
return
data
;
},
},
...
@@ -161,12 +161,13 @@ cc.Class({
...
@@ -161,12 +161,13 @@ cc.Class({
},
},
initBtn
()
{
initBtn
()
{
const
bg
=
cc
.
find
(
'
Canvas/bg
'
);
this
.
showDragon
();
bg
.
addComponent
(
cc
.
Button
);
// const bg = cc.find('Canvas/bg');
//节点中添加了button组件 则可以添加click事件监听das
// bg.addComponent(cc.Button);
bg
.
on
(
'
click
'
,
async
()
=>
{
// //节点中添加了button组件 则可以添加click事件监听das
await
this
.
showDragon
();
// bg.on('click', async () => {
})
// await this.showDragon();
// })
},
},
async
showDragon
()
{
async
showDragon
()
{
...
...
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