Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_03_2
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
OP_03_2
Commits
e6f0384c
Commit
e6f0384c
authored
Dec 08, 2021
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 事件只注册一次
parent
3ca16b2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
OP_03_2.js
play/assets/OP_03_2/scene/OP_03_2.js
+9
-14
No files found.
play/assets/OP_03_2/scene/OP_03_2.js
View file @
e6f0384c
...
...
@@ -158,7 +158,7 @@ cc.Class({
this
.
initData
();
this
.
initAudio
();
this
.
initView
();
//
this.initListener();
this
.
initListener
();
},
_cantouch
:
null
,
...
...
@@ -428,17 +428,18 @@ cc.Class({
tip
.
active
=
true
;
var
dragonDisplay
=
tip
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
const
state
=
dragonDisplay
.
playAnimation
(
name
,
times
);
return
state
;
},
dragonDisplay
.
once
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
initListener
()
{
const
tip
=
cc
.
find
(
'
Canvas/tipFrame/tip
'
);
var
dragonDisplay
=
tip
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
on
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
tip
.
active
=
false
;
if
(
cb
)
{
cb
();
}
this
.
playAni
(
'
normal
'
,
0
)
this
.
photoBtnClick
();
})
return
state
;
},
...
...
@@ -792,12 +793,6 @@ cc.Class({
this
.
playAni
(
'
begin
'
,
0
)
this
.
playTipAni
(
'
normal
'
,
1
,
()
=>
{
console
.
log
(
'
play ani end
'
);
this
.
playAni
(
'
normal
'
,
0
)
this
.
photoBtnClick
();
})
},
...
...
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