2025-12-18 13:27:22 +08:00
|
|
|
import { _decorator } from 'cc';
|
2025-12-14 23:35:08 +08:00
|
|
|
import { UIBase } from '../../Framework/UI/UIBase';
|
|
|
|
|
|
|
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* UIGame 游戏主界面
|
|
|
|
|
* 显示游戏UI和世界场景
|
|
|
|
|
*/
|
|
|
|
|
@ccclass('UIGame')
|
|
|
|
|
export class UIGame extends UIBase {
|
|
|
|
|
|
|
|
|
|
protected onLoad(): void {
|
|
|
|
|
console.log('[UIGame] onLoad');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected onEnable(): void {
|
|
|
|
|
console.log('[UIGame] onEnable');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected onDisable(): void {
|
|
|
|
|
console.log('[UIGame] onDisable');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected onDestroy(): void {
|
|
|
|
|
console.log('[UIGame] onDestroy');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取 UI 预制体路径
|
|
|
|
|
*/
|
|
|
|
|
public onGetUrl(): string {
|
2025-12-18 13:27:22 +08:00
|
|
|
return 'res://UI/Game/UIGame';
|
2025-12-14 23:35:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|