Commit b8c1f707 authored by asdf's avatar asdf

.

parent 328f8cc7
......@@ -234,7 +234,8 @@ cc.Class({
playLabelGreen() {
this.dragonBone.playAnimation(this.animationName, 1);
this.playAudioOption((duration) => {
this.scheduleDuration = duration / 2 / this.label.node.width;
this.scheduleDuration = duration / 4 / this.label.node.width;
this.unschedule(this.playLabelGreenCb);
this.schedule(this.playLabelGreenCb, this.scheduleDuration)
}, () => {
......@@ -255,6 +256,7 @@ cc.Class({
}
},
playLabelWhite() {
this.unschedule(this.playLabelWhiteCb);
this.schedule(this.playLabelWhiteCb, this.scheduleDuration)
},
playLabelWhiteCb() {
......
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