GameOverView.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * @Author: mojunshou 1637302775@qq.com
  3. * @Date: 2025-03-27 18:19:53
  4. * @LastEditors: mojunshou 1637302775@qq.com
  5. * @LastEditTime: 2025-03-31 18:59:06
  6. * @Description: 游戏结束界面
  7. */
  8. import { _decorator } from 'cc';
  9. import { oops } from 'db://oops-framework/core/Oops';
  10. import { GameComponent } from "db://oops-framework/module/common/GameComponent";
  11. import { GameEvent } from '../../common/config/GameEvent';
  12. import { UIID } from '../../common/config/GameUIConfig';
  13. const { ccclass, property } = _decorator;
  14. /** 显示对象控制 */
  15. @ccclass('GameOverView')
  16. export class GameOverView extends GameComponent {
  17. protected start() {
  18. this.setButton();
  19. }
  20. private btn_restart() {
  21. oops.message.dispatchEvent(GameEvent.RestartGame);
  22. oops.gui.remove(UIID.GameOver);
  23. }
  24. private btn_resurrection() {
  25. //打开广告
  26. //我这调你登录,你登录后,返回给我,可以登录,我这边加载资源,userinfo-头像,UID nickname,关卡,还有配置,
  27. }
  28. }