var anim = this.getComponent(cc.Animation);
//播放動畫
anim.play('動畫名')
//重置動畫
this.anim.setCurrentTime(0)
this.anim.stop()
var anim = this.getComponent(cc.Animation);
//播放動畫
anim.play('動畫名')
//重置動畫
this.anim.setCurrentTime(0)
this.anim.stop()