Commit 78196777 authored by liujiangnan's avatar liujiangnan

debgu

parent 62a439c3
......@@ -142,13 +142,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.audioEngine.stop(this.playId);
}
talk.active = true;
happy.active = false;
cc.audioEngine.setMusicVolume(0.3);
this.playId = cc.audioEngine.play(this.monkyWait, null, 1);
cc.audioEngine.setFinishCallback(this.playId, () => {
happy.active = true;
talk.active = false;
cc.audioEngine.setMusicVolume(1);
})
});
}, 0.15);
}
protected update(dt: number): void {
......
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