Commit 3deb36ac authored by liujiangnan's avatar liujiangnan

fix: 初始化任务

parent 628ec225
...@@ -332,19 +332,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -332,19 +332,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.createCrads(); this.createCrads();
this.updateTop(); this.updateTop();
this.resetAudio(); this.resetAudio();
if (this.data.npcAudio) {
// 如果有标题声音得先播标题声音,然后再播页的声音
const npc = cc.find(`title/voice`, this.btn_back);
npc.active = true;
const ani = npc.getComponent(cc.Animation);
ani.play();
this.playAudioByUrl(this.data.npcAudio, () => {
ani.stop();
this.playQuestionAudio();
});
} else {
this.playQuestionAudio();
}
} }
private async createCrads() { private async createCrads() {
......
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