FirstChargeLayer.js 409 B

12345678910111213141516171819202122232425262728293031
  1. var baseLayer = require('BaseLayer');
  2. import SoundMgr from "../base/SoundMgr";
  3. cc.Class({
  4. extends: baseLayer,
  5. properties: {
  6. rule: cc.Node,
  7. },
  8. // LIFE-CYCLE CALLBACKS:
  9. // onLoad () {},
  10. start () {
  11. },
  12. onClickRule(){
  13. SoundMgr.playClick();
  14. this.rule.active = !this.rule.active;
  15. },
  16. onClickGo(){
  17. SoundMgr.playClick();
  18. },
  19. });