Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP15
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
OP15
Commits
2d461e19
Commit
2d461e19
authored
Nov 27, 2021
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 预加载引发的音频问题
parent
de3691c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
OP15.js
play/assets/OP15/scene/OP15.js
+10
-3
No files found.
play/assets/OP15/scene/OP15.js
View file @
2d461e19
...
@@ -646,9 +646,16 @@ cc.Class({
...
@@ -646,9 +646,16 @@ cc.Class({
// console.log(this.data);
// console.log(this.data);
console
.
log
(
'
resource perload finish
'
);
console
.
log
(
'
resource perload finish
'
);
if
(
window
&&
window
[
"
air
"
])
{
if
(
window
&&
window
[
"
air
"
]
&&
window
[
"
air
"
].
hideAirClassLoading
)
{
// cc.find('Canvas').opacity = 0;
window
[
"
air
"
].
hideAirClassLoading
();
window
.
air
.
onCourseInScreen
=
(
next
)
=>
{
// cc.find('Canvas').opacity = 255;
this
.
loadEnd
();
next
();
}
window
.
air
.
hideAirClassLoading
();
}
else
{
this
.
loadEnd
();
}
}
cc
.
debug
.
setDisplayStats
(
false
);
cc
.
debug
.
setDisplayStats
(
false
);
...
...
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