Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM_L5_26
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
YM_L5_26
Commits
2a145010
Commit
2a145010
authored
Aug 20, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 第一次播放音效,第二次播放语音
parent
256a8bcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
MyGame.ts
src/app/play/game/MyGame.ts
+7
-4
No files found.
src/app/play/game/MyGame.ts
View file @
2a145010
...
...
@@ -430,16 +430,19 @@ export class MyGame extends Game {
label
.
visible
=
true
;
tweenChange
(
label
,
{
alpha
:
1
},
0.2
);
}
if
(
wordMiddle
.
alpha
==
1
)
{
this
.
playAudio
(
'
click_line
'
);
}
else
{
this
.
playAudio
(
popUpData
.
groupAudios
[
letterData
.
group
].
audio
);
}
groupShowedList
[
letterData
.
group
]
=
true
;
if
(
groupShowedList
.
every
(
show
=>
show
==
true
))
{
const
changeBtn
=
this
.
seekChildByName
(
'
changeBtn
'
);
changeBtn
.
visible
=
true
;
tweenChange
(
changeBtn
,
{
alpha
:
1
},
0.2
);
}
this
.
playAudio
(
'
click_line
'
,
true
,
()
=>
{
this
.
playAudio
(
popUpData
.
groupAudios
[
letterData
.
group
].
audio
);
});
});
wordBase
.
addChild
(
wordMiddle
);
...
...
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