Commit 53bf723d authored by Tt's avatar Tt

修改音频

parent 98e20ada
......@@ -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);
}
......
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