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);

        //显示Loading
        app.layer.Open(GUI.Loading);

    }

}


