UserInformationFigure.js 460 B

12345678910111213141516171819202122232425
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. figure: sp.Skeleton, //人物形象
  5. },
  6. // LIFE-CYCLE CALLBACKS:
  7. onLoad () {
  8. this.node.on('touchend', () => {
  9. this.figure.setAnimation(0, 'click', false);
  10. this.figure.setCompleteListener(() => {
  11. this.figure.setAnimation(0, 'stand', true);
  12. });
  13. }, this);
  14. },
  15. start () {
  16. },
  17. // update (dt) {},
  18. });