Pause.ts 503 B

12345678910111213141516171819
  1. import { _decorator, Component, director, Node } from 'cc';
  2. import { UIBase, UIType } from '../../GameFrameWork/UIBase';
  3. import { UIMgr } from '../../../Frames/UIManager';
  4. import { StartScene } from '../StartScene';
  5. const { ccclass, property } = _decorator;
  6. @ccclass('Pause')
  7. export class Pause extends UIBase {
  8. protected onStart() {
  9. this.onBtnClick("_btnBack", this._onBtnBack)
  10. }
  11. private _onBtnBack() {
  12. this.hide(false);
  13. //UIMgr.openScene("StartScene");
  14. }
  15. }