修改为单场景
This commit is contained in:
@@ -14,7 +14,9 @@ export class MainScene extends Component {
|
||||
@property(Camera)
|
||||
MainCamera: Camera = null;
|
||||
|
||||
start() {
|
||||
start() {}
|
||||
|
||||
init() {
|
||||
//每个场景必须添加的
|
||||
let gameRootUI = this.node.getComponent(GameRootUI);
|
||||
if (!gameRootUI) {
|
||||
@@ -22,7 +24,7 @@ export class MainScene extends Component {
|
||||
gameRootUI.InitByCreate(this.UIRoot, this.UILayerMod, "NavigationPanel");
|
||||
}
|
||||
GameRootUI.MainCamera = this.MainCamera;
|
||||
|
||||
|
||||
// 初始化MainController并预加载数据
|
||||
this.initMainController();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user