bombUI.js 480 B

1234567891011121314151617181920212223242526272829303132
  1. let baseLayer = require('BaseLayer');
  2. import EventMgr from '../base/EventMgr';
  3. import Tool from '../base/Tool';
  4. cc.Class({
  5. extends: baseLayer,
  6. properties: {
  7. },
  8. // LIFE-CYCLE CALLBACKS:
  9. onLoad () {
  10. this._super();
  11. },
  12. start () {
  13. this.registerListener('action1', this.onMsg1);
  14. },
  15. onMsg1(data){
  16. console.log('msg1: ', data);
  17. },
  18. onClickClose(){
  19. this.onClose();
  20. }
  21. // update (dt) {},
  22. });