FruitRule.js 292 B

123456789101112131415161718192021222324
  1. cc.Class({
  2. extends: cc.Component,
  3. editor: {
  4. menu: 'Game/Fruit/Rule'
  5. },
  6. properties: {
  7. },
  8. // LIFE-CYCLE CALLBACKS:
  9. onClose () {
  10. this.node.active = false;
  11. },
  12. show () {
  13. this.node.active = true;
  14. },
  15. // update (dt) {},
  16. });