Commit 5c03b809 authored by 李维's avatar 李维

上次没修好 再修一次

parent f60e58c6
...@@ -37,6 +37,7 @@ cc.Class({ ...@@ -37,6 +37,7 @@ cc.Class({
play() { play() {
if(this.playTween) { if(this.playTween) {
this.playTween.stop(); this.playTween.stop();
this.node.scale = 1;
} }
this.playTween = cc.tween(this.node) this.playTween = cc.tween(this.node)
.by(0.5, { scale: 0.1 }) .by(0.5, { scale: 0.1 })
...@@ -47,8 +48,11 @@ cc.Class({ ...@@ -47,8 +48,11 @@ cc.Class({
}, },
stop() { stop() {
if(this.playTween) {
this.playTween.stop(); this.playTween.stop();
this.node.scale = 1;
this.playTween = null; this.playTween = null;
} }
}
// update (dt) {}, // update (dt) {},
}); });
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