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

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

        res.InitSvc();
        AudioSvc audio = GetComponent <AudioSvc>();

        audio.InitSvc();
        TimerSvc timerSvc = GetComponent <TimerSvc>();

        timerSvc.InitSvc();


        //业务系统初始化
        UISys uiSys = GetComponent <UISys>();

        uiSys.InitSys();
        BattleSys battleSys = GetComponent <BattleSys>();

        battleSys.InitSys();

        //dynamicWnd.SetWndState();
        //进入登录场景并加载相应UI
        uiSys.EnterLogin();
    }