Commit 17722891 authored by 杨一航's avatar 杨一航

fix

parent 27333627
......@@ -65,6 +65,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private _round: number;
private _catSpeaking: boolean;
private _audioNode: cc.Node;
private _gameDone: boolean;
onLoad() {
......@@ -153,6 +154,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
initProtory() {
this._gameDone = false;
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
......@@ -470,6 +473,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
_updateRootSt(data: MsgData) {
DOLOG && console.log(data);
if (this._gameDone) return;
if (data.Round == 1) {
this._updateCards(data.getAnswerList())
......@@ -547,6 +553,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
if (this._gameDone) {
return;
}
this._gameDone = true;
this.unschedule(this._cyclePlayAudio);
cc.audioEngine.stopAllEffects();
// 鸟飞走
......
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