25 lines
431 B
TypeScript
Raw Permalink Normal View History

2023-10-23 18:56:01 +08:00
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);
2023-11-05 03:26:09 +08:00
//显示Loading
app.layer.Open(GUI.Loading);
2023-10-23 18:56:01 +08:00
}
}