新增CameraController,现在项目可以正常运作了。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user