Commit 6157230e authored by Tt's avatar Tt

音频

parent c1fb0ca2
...@@ -1117,9 +1117,13 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1117,9 +1117,13 @@ export class PlayComponent implements OnInit, OnDestroy {
fish['child_image'].ref.visible = false; fish['child_image'].ref.visible = false;
fish['child_paopao_ani'].ref.visible = true; fish['child_paopao_ani'].ref.visible = true;
const currentStage = this.gameStages[this.currentStageIndex];
if (currentStage && currentStage.correctQuestion && currentStage.correctQuestion.audio) {
// 播放当前正确问题的音频
this.g_cartoon.playAudio(currentStage.correctQuestion.audio);
}
// 注销该鱼的点击事件 // 注销该鱼的点击事件
this.unsubscribeFishEvent(fish.fishId); this.unsubscribeFishEvent(fish.fishId);
// 创建飞向水桶的小鱼动画 // 创建飞向水桶的小鱼动画
this.createFlyingFish(fish); this.createFlyingFish(fish);
this.brokePaopaoAni(fish); this.brokePaopaoAni(fish);
......
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