Commit 5320af7b authored by yu's avatar yu

落子音频位置调整

parent fe0b9fac
...@@ -601,6 +601,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -601,6 +601,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.showStars(piece); this.showStars(piece);
piece['rightTween'] = true; piece['rightTween'] = true;
this.playLocalAudio("落子");
await asyncTweenTo(piece, 1, { await asyncTweenTo(piece, 1, {
x: rightBlock.x + offsetX[color], x: rightBlock.x + offsetX[color],
y: rightBlock.y + offsetY[color], y: rightBlock.y + offsetY[color],
...@@ -631,7 +632,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -631,7 +632,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
piece.stopAllActions(); piece.stopAllActions();
await this.playLocalAudio("落子");
piece.zIndex = 0; piece.zIndex = 0;
} }
......
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