Commit 53bf723d authored by Tt's avatar Tt

修改音频

parent 98e20ada
...@@ -775,7 +775,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -775,7 +775,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return; return;
} }
this.playLocalAudio("错误弹回"); this.playLocalAudio("落子");
await asyncTweenTo( await asyncTweenTo(
node, node,
0.7, 0.7,
...@@ -950,6 +950,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -950,6 +950,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await this.pieceFindRightBlock(rightBlock, idx); await this.pieceFindRightBlock(rightBlock, idx);
} }
await this.playLocalAudio("正确");
pieceRed["cantMove"] = true; pieceRed["cantMove"] = true;
pieceBlue["cantMove"] = true; pieceBlue["cantMove"] = true;
this._status.letter = ""; this._status.letter = "";
...@@ -1180,9 +1181,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1180,9 +1181,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
"applicationId": "154838659000009e" "applicationId": "154838659000009e"
} }
if (this.recrodEnd(testData)) { if (this.recrodEnd(testData)) {
this.playLocalAudio("正确");
await this.showVoiceGood(); await this.showVoiceGood();
return resolve(true) return resolve(true)
} else { } else {
this.playLocalAudio("错误弹回");
await this.showVoiceTry(); await this.showVoiceTry();
return resolve(false); return resolve(false);
} }
...@@ -1191,9 +1194,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1191,9 +1194,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
courseware && courseware.stopTest(async (data) => { courseware && courseware.stopTest(async (data) => {
data = JSON.parse(data); data = JSON.parse(data);
if (this.recrodEnd(data)) { if (this.recrodEnd(data)) {
this.playLocalAudio("正确");
await this.showVoiceGood(); await this.showVoiceGood();
return resolve(true) return resolve(true)
} else { } else {
this.playLocalAudio("错误弹回");
await this.showVoiceTry(); await this.showVoiceTry();
return resolve(false); return resolve(false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment