cc.Class({ extends: cc.Component, properties: { anim: cc.Animation, anim2: cc.Animation }, shoot () { this.anim.play('shoot') this.anim2.play('reset') }, reset () { }, start () { }, // update (dt) {}, });