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

音效调整

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