新增CameraController,现在项目可以正常运作了。

This commit is contained in:
janing
2025-12-18 13:27:22 +08:00
parent 90175a1665
commit e677b1e11b
11 changed files with 223 additions and 53 deletions

View File

@@ -1,6 +1,5 @@
import { _decorator, Component, Node } from 'cc';
import { _decorator } from 'cc';
import { UIBase } from '../../Framework/UI/UIBase';
import { World } from './World';
const { ccclass, property } = _decorator;
@@ -10,8 +9,6 @@ const { ccclass, property } = _decorator;
*/
@ccclass('UIGame')
export class UIGame extends UIBase {
@property(Node)
worldRoot: Node = null;
protected onLoad(): void {
console.log('[UIGame] onLoad');
@@ -33,13 +30,7 @@ export class UIGame extends UIBase {
* 获取 UI 预制体路径
*/
public onGetUrl(): string {
return 'res://UI/UIGame';
return 'res://UI/Game/UIGame';
}
/**
* 获取世界根节点
*/
public getWorldRoot(): Node {
return this.worldRoot;
}
}