课件icon.js 424 B

123456789101112131415161718192021222324252627
  1. var httpUtils = require("HttpUtils");
  2. cc.Class({
  3. extends: require("Base"),
  4. properties: {
  5. sprite_read: {
  6. default: null,
  7. type: cc.Sprite
  8. },
  9. sprite_icon: {
  10. default: null,
  11. type: cc.Sprite
  12. }
  13. },
  14. // LIFE-CYCLE CALLBACKS:
  15. onLoad() {},
  16. start() {},
  17. // update (dt) {},
  18. setClickFunction: function(click) {
  19. this.node.on(cc.Node.EventType.TOUCH_END, click, this);
  20. }
  21. });