GameOverView.ts 664 B

123456789101112131415161718192021222324252627
  1. import { _decorator } from 'cc';
  2. import { oops } from 'db://oops-framework/core/Oops';
  3. import { GameComponent } from "db://oops-framework/module/common/GameComponent";
  4. import { GameEvent } from '../../common/config/GameEvent';
  5. import { UIID } from '../../common/config/GameUIConfig';
  6. const { ccclass, property } = _decorator;
  7. /** 显示对象控制 */
  8. @ccclass('GameOverView')
  9. export class GameOverView extends GameComponent {
  10. protected start() {
  11. this.setButton();
  12. }
  13. private btn_restart() {
  14. oops.message.dispatchEvent(GameEvent.RestartGame);
  15. oops.gui.remove(UIID.GameOver);
  16. }
  17. private btn_resurrection() {
  18. }
  19. }