Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ET-18
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-18
Commits
96fa0ca3
Commit
96fa0ca3
authored
Feb 24, 2021
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e30e486c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
LayerDone.js
play/assets/tmpGame/script/LayerDone.js
+3
-0
No files found.
play/assets/tmpGame/script/LayerDone.js
View file @
96fa0ca3
...
@@ -16,6 +16,9 @@ cc.Class({
...
@@ -16,6 +16,9 @@ cc.Class({
},
},
playAudio
(){
playAudio
(){
if
(
GameData
.
audioCount
!==
0
){
return
;
}
GameData
.
audioCount
++
;
GameData
.
audioCount
++
;
let
url
=
GameData
.
scene
.
data
.
questionList
[
GameData
.
questionIndex
].
audio
;
let
url
=
GameData
.
scene
.
data
.
questionList
[
GameData
.
questionIndex
].
audio
;
cc
.
assetManager
.
loadRemote
(
url
,
null
,
(
err
,
clip
)
=>
{
cc
.
assetManager
.
loadRemote
(
url
,
null
,
(
err
,
clip
)
=>
{
...
...
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