Commit b8c1f707 authored by asdf's avatar asdf

.

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