chuizi.js 313 B

123456789101112131415161718192021222324
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. },
  5. onEnable() {
  6. this.node.getComponent(cc.Animation).play();
  7. },
  8. AniamtionCompelte() {
  9. this.node.active = false;
  10. },
  11. // LIFE-CYCLE CALLBACKS:
  12. // onLoad () {},
  13. start() {
  14. },
  15. // update (dt) {},
  16. });