| 1234567891011121314151617181920212223242526272829 |
- /*
- * @Author: mojunshou 1637302775@qq.com
- * @Date: 2025-04-18 19:35:48
- * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-19 10:20:50
- * @Description: 解锁功能
- */
- import { _decorator, Component, Node } from 'cc';
- import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
- import { UIID } from '../../common/config/GameUIConfig';
- import { oops } from 'db://oops-framework/core/Oops';
- import { GameEvent } from '../../common/config/GameEvent';
- const { ccclass, property } = _decorator;
- @ccclass('UnlockFunction')
- export class UnlockFunction extends GameComponent {
- start() {
- this.setButton();
- }
- btn_confirm() {
- oops.gui.remove(UIID.UnlockFunction);
- //发送开始自动玩游戏
- oops.message.dispatchEvent(GameEvent.StartAutoGame);
- }
- }
|