
import { _decorator, Component, Node } from 'cc';
import { UIConfig } from '../UIConfig';
import UIManager from '../UIFrame/UIManager';
import { UIScreen } from '../UIFrame/UIScreen';
const { ccclass, property } = _decorator;

@ccclass('MainScreen')
export class MainScreen extends UIScreen {

    async load() {
        await UIManager.getInstance().openForm(UIConfig.Home.prefabPath);
        await UIManager.getInstance().openForm(UIConfig.Backyard.prefabPath);
        // await UIManager.getInstance().openForm(UIConfig.GameConfig3.prefabPath);
        await UIManager.getInstance().openForm(UIConfig.Navigaton.prefabPath);
        return '';
    }


    start () {
        
    }

    // update (deltaTime: number) {
    //     // [4]
    // }
}

/**
 * [1] Class member could be defined like this.
 * [2] Use `property` decorator if your want the member to be serializable.
 * [3] Your initialization goes here.
 * [4] Your update function goes here.
 *
 * Learn more about scripting: https://docs.cocos.com/creator/3.0/manual/en/scripting/
 * Learn more about CCClass: https://docs.cocos.com/creator/3.0/manual/en/scripting/ccclass.html
 * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.0/manual/en/scripting/life-cycle-callbacks.html
 */
