Commit 12342e0a authored by 杨一航's avatar 杨一航

音效调整

parent ad46cdb3
...@@ -259,14 +259,17 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -259,14 +259,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
let state = this._status.state let state = this._status.state
if (!this.isMySide) { if (!this.isMySide) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0); this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0);
this.playAudioByUrl(this.data.waitingTurn)
return return
} }
if (state == -1) { if (state == -1) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0); this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0);
} else if (state == 0) { } else if (state == 0) {
this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("begin", 0); this.cat.getComponent(dragonBones.ArmatureDisplay).playAnimation("begin", 0);
this.playAudioByUrl(this.data.waitingWheel)
} else if (state == 1) { } else if (state == 1) {
this.playAudioByUrl(this.data.waitingPiece)
} }
else if (state == 2) { else if (state == 2) {
...@@ -281,6 +284,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -281,6 +284,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
switch (state) { switch (state) {
case -1: case -1:
break; break;
case 0: case 0:
if (this.isMySide) { if (this.isMySide) {
......
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