Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PU21
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
PU21
Commits
57dd8115
Commit
57dd8115
authored
May 26, 2021
by
jeff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
082b2e0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wordsItem.js
play/assets/scene/scene/wordsItem.js
+1
-1
No files found.
play/assets/scene/scene/wordsItem.js
View file @
57dd8115
...
@@ -68,7 +68,7 @@ cc.Class({
...
@@ -68,7 +68,7 @@ cc.Class({
this
.
_playing
=
true
this
.
_playing
=
true
cc
.
assetManager
.
loadRemote
(
url
,
(
err
,
audioClip
)
=>
{
cc
.
assetManager
.
loadRemote
(
url
,
(
err
,
audioClip
)
=>
{
if
(
err
)
return
if
(
err
)
return
if
(
playingItem
)
playingItem
.
stopAudio
()
if
(
playingItem
&&
playingItem
!=
this
)
playingItem
.
stopAudio
()
if
(
!
this
.
_playing
)
return
if
(
!
this
.
_playing
)
return
this
.
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
this
.
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
cc
.
audioEngine
.
setFinishCallback
(
this
.
audioId
,
this
.
stopAudio
.
bind
(
this
));
cc
.
audioEngine
.
setFinishCallback
(
this
.
audioId
,
this
.
stopAudio
.
bind
(
this
));
...
...
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