mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
25 lines
425 B
TypeScript
25 lines
425 B
TypeScript
|
import { _decorator, Component, Node } from 'cc';
|
||
|
import { app } from './App';
|
||
|
import { GUI } from './ui/UIConfig';
|
||
|
const { ccclass, property } = _decorator;
|
||
|
|
||
|
@ccclass('UICanvas')
|
||
|
export class UICanvas extends Component {
|
||
|
|
||
|
@property(Node)
|
||
|
root:Node;
|
||
|
|
||
|
protected onLoad(): void {
|
||
|
|
||
|
//绑定层级
|
||
|
app.layer.bind(this.root);
|
||
|
|
||
|
//显示Home
|
||
|
app.layer.Open(GUI.Home);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|