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

上次没修好 再修一次

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