RetentionView.ts 710 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * @Author: mojunshou 1637302775@qq.com
  3. * @Date: 2025-03-19 18:02:51
  4. * @LastEditors: mojunshou 1637302775@qq.com
  5. * @LastEditTime: 2025-03-19 18:38:24
  6. * @Description: 隐私挽留弹窗
  7. */
  8. import { game } from 'cc';
  9. import { _decorator, Component, Node } from 'cc';
  10. import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
  11. const { ccclass, property } = _decorator;
  12. @ccclass('RetentionView')
  13. export class RetentionView extends GameComponent {
  14. start() {
  15. this.setButton();
  16. }
  17. private btn_agree() {
  18. console.log("同意");
  19. //调用安卓给权限
  20. }
  21. private btn_disagree() {
  22. console.log("不同意");
  23. game.end();
  24. }
  25. }