7de74299-c0a6-4b91-be63-23c3aabd6bb6.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. "use strict";
  2. cc._RF.push(module, '7de74KZwKZLkb5jI8OqvWu2', 'MaskLayer');
  3. // Texture/prefab/MaskLayer.js
  4. "use strict";
  5. // Learn cc.Class:
  6. // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html
  7. // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html
  8. // Learn Attribute:
  9. // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
  10. // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html
  11. // Learn life-cycle callbacks:
  12. // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
  13. // - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
  14. cc.Class({
  15. "extends": cc.Component,
  16. properties: {// foo: {
  17. // // ATTRIBUTES:
  18. // default: null, // The default value will be used only when the component attaching
  19. // // to a node for the first time
  20. // type: cc.SpriteFrame, // optional, default is typeof default
  21. // serializable: true, // optional, default is true
  22. // },
  23. // bar: {
  24. // get () {
  25. // return this._bar;
  26. // },
  27. // set (value) {
  28. // this._bar = value;
  29. // }
  30. // },
  31. },
  32. // LIFE-CYCLE CALLBACKS:
  33. // onLoad () {},
  34. start: function start() {
  35. this.node.on(cc.Node.EventType.TOUCH_START, this.touchBegin.bind(this), this);
  36. },
  37. touchBegin: function touchBegin(touch, event) {} // update (dt) {},
  38. });
  39. cc._RF.pop();