Start.ts 680 B

1234567891011121314151617181920212223242526272829
  1. import { _decorator } from 'cc';
  2. import { UIBase } from '../GameFrameWork/UIBase';
  3. import { UIMgr } from '../../Frames/UIManager';
  4. import { localDt } from '../../Frames/LocalDt';
  5. const { ccclass, property } = _decorator;
  6. @ccclass('Start')
  7. export class Start extends UIBase {
  8. protected onStart() {
  9. this.onBtnClick("_btnStart", this._btnStart, this);
  10. this.onBtnClick("_btnMusic", this._btnMusic, this);
  11. this.onBtnClick("_clearData", this._btnClearDt, this)
  12. }
  13. private _btnStart() {
  14. UIMgr.closeUI("Start");
  15. }
  16. private _btnMusic() {
  17. }
  18. //清除本地数据
  19. private _btnClearDt(){
  20. localDt.clearAll();
  21. }
  22. }