Knife.js 283 B

12345678910111213141516171819202122
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. anim: cc.Animation,
  5. anim2: cc.Animation
  6. },
  7. shoot () {
  8. this.anim.play('shoot')
  9. this.anim2.play('reset')
  10. },
  11. reset () {
  12. },
  13. start () {
  14. },
  15. // update (dt) {},
  16. });