import { PanelType } from "../../../../mk/system/UISystem";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Login extends cc.Component {

    onLoad() {
        
    }

    start() {


    }



    update() {
        if(!g.loginData.loadResCompelete){
            g.loginData.loadLocalRes();
            return;
        }
        if (!g.loginData.isLogin) {
            g.loginData.login();
            return;
        }
        if(g.gameData.dataFinish){//登录流程完毕
            mk.ui.openPanel("game",PanelType.game);
        }
    }
}