|
@@ -247,6 +247,7 @@ export default class Game_b03_u03_g01 extends GameBase {
|
|
|
if (idPoint == 0) {
|
|
|
other.node.getChildByName('icon').active = true;
|
|
|
this.selectItems.push(idLine * 10 + idPoint);
|
|
|
+ this.playAudioGoodTouch();
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
@@ -254,6 +255,7 @@ export default class Game_b03_u03_g01 extends GameBase {
|
|
|
if (Math.floor(id / 10) == idLine && Math.floor(id % 10) + 1 == idPoint) {
|
|
|
other.node.getChildByName('icon').active = true;
|
|
|
this.selectItems.push(idLine * 10 + idPoint);
|
|
|
+ this.playAudioGoodTouch();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -409,6 +411,7 @@ export default class Game_b03_u03_g01 extends GameBase {
|
|
|
funcWalk(0);
|
|
|
// 成功音效
|
|
|
Tools.playEffect(this.arrAudioRight[0]);
|
|
|
+ this.playAudioRight();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -472,6 +475,7 @@ export default class Game_b03_u03_g01 extends GameBase {
|
|
|
skeHero.clearTracks();
|
|
|
Tools.playAnimation(skeHero, dataHero.idle, true);
|
|
|
this.nodeHero.position = initPos;
|
|
|
+ this.playAudioErrorReset();
|
|
|
callBack();
|
|
|
}, 0.5);
|
|
|
});
|
|
@@ -512,7 +516,9 @@ export default class Game_b03_u03_g01 extends GameBase {
|
|
|
let time = Tools.getMoveTime(p1, p2, 1, 400);
|
|
|
cc.tween(this.nodeHero).to(time, { position: p2 }).call(() => {
|
|
|
this.nodeHero.getChildByName('spine').scaleX *= -1;
|
|
|
- Tools.playAnimation(skeHero, dataHero.idle, true, cb);
|
|
|
+ Tools.playAnimation(skeHero, dataHero.idle, true);
|
|
|
+ this.playAudioErrorReset();
|
|
|
+ cb();
|
|
|
}).start();
|
|
|
}
|
|
|
};
|
|
@@ -522,6 +528,7 @@ export default class Game_b03_u03_g01 extends GameBase {
|
|
|
item.getChildByName('icon').active = false;
|
|
|
});
|
|
|
cc.tween(this.node).delay(1.0).call(callBack).start();
|
|
|
+ this.playAudioErrorReset();
|
|
|
}
|
|
|
}
|
|
|
|