Esempio n. 1
0
    /// <summary>
    /// 初始化服务和系统资源
    /// </summary>
    private void Init()
    {
        resSvc      = GetComponent <ResSvc>();
        audioSvc    = GetComponent <AudioSvc>();
        netSvc      = GetComponent <NetSvc>();
        timerSvc    = GetComponent <TimerSvc>();
        loginSys    = GetComponent <LoginSys>();
        mainCitySys = GetComponent <MainCitySys>();
        fubenSys    = GetComponent <FubenSys>();
        batleSys    = GetComponent <BatleSys>();

        resSvc.InitResSvc();
        netSvc.InitNetSvc();
        audioSvc.InitAudioSvc();
        timerSvc.InitTimerSvc();
        loginSys.InitSystem();
        mainCitySys.InitSystem();
        fubenSys.InitSystem();
        batleSys.InitSystem();

        SetPanelActive();

        loginSys.EnterGame();
    }