Start.ts 471 B

12345678910111213141516171819202122
  1. import { _decorator } from 'cc';
  2. import { UIBase } from '../GameFrameWork/UIBase';
  3. import { UIMgr } from '../../Frames/UIManager';
  4. const { ccclass, property } = _decorator;
  5. @ccclass('Start')
  6. export class Start extends UIBase {
  7. protected onStart() {
  8. this.onBtnClick("_btnStart", this._btnStart);
  9. this.onBtnClick("_btnMusic", this._btnMusic);
  10. }
  11. private _btnStart() {
  12. UIMgr.closeUI("Start");
  13. }
  14. private _btnMusic() {
  15. }
  16. }