Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Coloring_OL
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
Coloring_OL
Commits
b225cc67
Commit
b225cc67
authored
Sep 08, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 预加载
parent
036d75ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
Coloring_OL.js
assets/Coloring_OL/scene/Coloring_OL.js
+15
-15
No files found.
assets/Coloring_OL/scene/Coloring_OL.js
View file @
b225cc67
...
...
@@ -369,50 +369,50 @@ cc.Class({
preloadItem
()
{
if
(
this
.
data
.
startAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
startAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
startAudio
}
);
}
if
(
this
.
data
.
waitAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
waitAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
waitAudio
}
);
}
if
(
this
.
data
.
finishAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
finishAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
finishAudio
}
);
}
if
(
this
.
data
.
finishWaitAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
finishWaitAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
finishWaitAudio
}
);
}
if
(
this
.
data
.
rightAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
rightAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
rightAudio
}
);
}
if
(
this
.
data
.
wrongAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
wrongAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
wrongAudio
}
);
}
if
(
this
.
data
.
smileAudio
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio
}
);
}
if
(
this
.
data
.
smileAudio_1
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio_1
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio_1
}
);
}
if
(
this
.
data
.
smileAudio_2
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio_2
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio_2
}
);
}
if
(
this
.
data
.
smileAudio_3
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio_3
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio_3
}
);
}
if
(
this
.
data
.
smileAudio_4
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio_4
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio_4
}
);
}
if
(
this
.
data
.
smileAudio_5
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio_5
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio_5
}
);
}
if
(
this
.
data
.
smileAudio_6
)
{
this
.
_audioResList
.
push
(
this
.
data
.
smileAudio_6
);
this
.
_audioResList
.
push
(
{
url
:
this
.
data
.
smileAudio_6
}
);
}
if
(
this
.
data
.
bg
)
{
this
.
_imageResList
.
push
(
this
.
data
.
bg
);
this
.
_imageResList
.
push
(
{
url
:
this
.
data
.
bg
}
);
}
for
(
let
i
=
0
;
i
<
this
.
data
.
images
.
length
;
i
++
)
{
this
.
_imageResList
.
push
(
this
.
data
.
images
[
i
].
img
);
this
.
_imageResList
.
push
(
{
url
:
this
.
data
.
images
[
i
].
img
}
);
}
this
.
preload
();
...
...
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