Ejemplo n.º 1
0
    private void Init()
    {
        //服务模块初始化
        NetSvc netSvc = GetComponent <NetSvc>();

        netSvc.InitSvc();
        ResSvc resSvc = GetComponent <ResSvc>();

        resSvc.InitSvs();
        AudioSvc audioSvc = GetComponent <AudioSvc>();

        audioSvc.InitSvc();
        //业务模块初始化
        LoginSys loginSys = GetComponent <LoginSys>();

        loginSys.InitSys();
        MainCitySys mainCitySys = GetComponent <MainCitySys>();

        mainCitySys.InitSys();
        //进入登录场景 并加载相应UI
        loginSys.EnterLogin();
    }