Start.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. update(deltaTime: number) {
  12. }
  13. private _btnStart() {
  14. this.hide(false);
  15. //UIMgr.openUI("BattleSceneSelect");
  16. // UIMgr.openUI("BattleScene_Left", UIType.WIDGET);
  17. // UIMgr.openUI("BattleScene_Right", UIType.WIDGET);
  18. // UIMgr.openUI("BattleScene_Top", UIType.WIDGET);
  19. }
  20. private _btnMusic() {
  21. // let _roleData: RoleData[] = null;
  22. // _roleData = dataMgr.getAllDataByName("RoleCardData");
  23. // _roleData.forEach((values,index)=>{
  24. // this.createRoleCard(index)
  25. // })
  26. //console.log(_roleData);
  27. }
  28. // createRoleCard(id: number){
  29. // console.log(id)
  30. // }
  31. }