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
74cb7a1f
Commit
74cb7a1f
authored
Mar 05, 2021
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:解决与加载没有资源的问题
parent
c9aebcc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
et_01.js
play/assets/et_01/script/et_01.js
+5
-3
No files found.
play/assets/et_01/script/et_01.js
View file @
74cb7a1f
...
...
@@ -84,7 +84,7 @@ cc.Class({
getDefaultData
()
{
// const dataJson = '{"animationName":"Greetings"}'
//
const dataJson = '{"animationName":"WarmUp"}'
const
dataJson
=
'
{"animationName":"WarmUp"}
'
// const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"LetsBlend"}'
...
...
@@ -95,7 +95,7 @@ cc.Class({
// const dataJson = '{"animationName":"SightWords"}'
// const dataJson = '{"animationName":"StoryTime"}'
// const dataJson = '{"animationName":"Topic"}'
const
dataJson
=
'
{"animationName":"ReadClosely"}
'
//
const dataJson = '{"animationName":"ReadClosely"}'
const
data
=
JSON
.
parse
(
dataJson
);
return
data
;
},
...
...
@@ -124,7 +124,6 @@ cc.Class({
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
(
err
,
data
)
=>
{
this
.
loadEnd
();
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
...
...
@@ -132,6 +131,9 @@ cc.Class({
cc
.
debug
.
setDisplayStats
(
false
);
});
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
}
},
...
...
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