Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l2_boardgame4_double
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
l2_boardgame4_double
Commits
53bf723d
Commit
53bf723d
authored
Jul 26, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改音频
parent
98e20ada
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
l2_boardgame4_double.ts
assets/l2_boardgame4_double/scene/l2_boardgame4_double.ts
+6
-1
No files found.
assets/l2_boardgame4_double/scene/l2_boardgame4_double.ts
View file @
53bf723d
...
...
@@ -775,7 +775,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
;
}
this
.
playLocalAudio
(
"
错误弹回
"
);
this
.
playLocalAudio
(
"
落子
"
);
await
asyncTweenTo
(
node
,
0.7
,
...
...
@@ -950,6 +950,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await
this
.
pieceFindRightBlock
(
rightBlock
,
idx
);
}
await
this
.
playLocalAudio
(
"
正确
"
);
pieceRed
[
"
cantMove
"
]
=
true
;
pieceBlue
[
"
cantMove
"
]
=
true
;
this
.
_status
.
letter
=
""
;
...
...
@@ -1180,9 +1181,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
"
applicationId
"
:
"
154838659000009e
"
}
if
(
this
.
recrodEnd
(
testData
))
{
this
.
playLocalAudio
(
"
正确
"
);
await
this
.
showVoiceGood
();
return
resolve
(
true
)
}
else
{
this
.
playLocalAudio
(
"
错误弹回
"
);
await
this
.
showVoiceTry
();
return
resolve
(
false
);
}
...
...
@@ -1191,9 +1194,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
courseware
&&
courseware
.
stopTest
(
async
(
data
)
=>
{
data
=
JSON
.
parse
(
data
);
if
(
this
.
recrodEnd
(
data
))
{
this
.
playLocalAudio
(
"
正确
"
);
await
this
.
showVoiceGood
();
return
resolve
(
true
)
}
else
{
this
.
playLocalAudio
(
"
错误弹回
"
);
await
this
.
showVoiceTry
();
return
resolve
(
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