Start.ts 934 B

12345678910111213141516171819202122232425262728293031
  1. import { _decorator, Component, Node } from 'cc';
  2. import { UIBase, UIType } 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. //UIMgr.openUI("BattleSceneSelect");
  14. // UIMgr.openUI("BattleScene_Left", UIType.WIDGET);
  15. // UIMgr.openUI("BattleScene_Right", UIType.WIDGET);
  16. // UIMgr.openUI("BattleScene_Top", UIType.WIDGET);
  17. }
  18. private _btnMusic() {
  19. // let _roleData: RoleData[] = null;
  20. // _roleData = dataMgr.getAllDataByName("RoleCardData");
  21. // _roleData.forEach((values,index)=>{
  22. // this.createRoleCard(index)
  23. // })
  24. }
  25. }