Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM2-30
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
YM2-30
Commits
21984688
Commit
21984688
authored
Jun 28, 2020
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refrector: for改foreach
parent
2b12ba15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
MyGame.ts
src/app/play/game/MyGame.ts
+13
-6
No files found.
src/app/play/game/MyGame.ts
View file @
21984688
...
...
@@ -63,12 +63,19 @@ export class MyGame extends Game {
}
preLoadData
(
imgUrlList
,
audioUrlList
)
{
for
(
var
i
=
0
;
i
<
imgUrlList
.
length
;
++
i
)
{
this
.
_parent
.
addUrlToImages
(
imgUrlList
[
i
]);
}
for
(
var
i
=
0
;
i
<
audioUrlList
.
length
;
++
i
)
{
this
.
_parent
.
addUrlToAudioObj
(
audioUrlList
[
i
]);
}
imgUrlList
.
forEach
((
data
)
=>
{
this
.
_parent
.
addUrlToImages
(
data
)
});
audioUrlList
.
forEach
((
data
)
=>
{
this
.
_parent
.
addUrlToAudioObj
(
data
);
});
// for (var i = 0; i < imgUrlList.length; ++i) {
// this._parent.addUrlToImages(imgUrlList[i]);
// }
// for (var i = 0; i < audioUrlList.length; ++i) {
// this._parent.addUrlToAudioObj(audioUrlList[i]);
// }
}
initView
()
{
...
...
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