示例#1
0
 private void InitSystems()
 {
     //初始化LoninSystem
     m_LoginSystem.Init();
     m_MainCitySystem.Init();
     //进入登录场景并加载相应的UI
     m_LoginSystem.EnterLogin();
 }
示例#2
0
文件: GameRoot.cs 项目: 389371356/RPG
    private void Init()
    {
        //服务模块初始化
        //NetService net = GetComponent<NetService>();
        //net.InitSvc();
        ResourcesService res = GetComponent <ResourcesService>();

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

        audio.InitSvc();
        TimerService timer = GetComponent <TimerService>();

        timer.InitSvc();
        //业务系统初始化
        LoginSystem login = GetComponent <LoginSystem>();

        login.InitSys();
        //进入登录场景并加载相应UI
        login.EnterLogin();
    }
示例#3
0
    void Init()
    {
        //按顺序初始化模块
        //服务模块
        NetService net = GetComponent <NetService>();

        net.InitNetService();
        ResService res = GetComponent <ResService>();

        res.InitRes();
        AudioService audio = GetComponent <AudioService>();

        audio.InitService();

        //业务系统初始化
        LoginSystem login = GetComponent <LoginSystem>();

        login.Init();

        //进入登录场景并加载相应UI
        login.EnterLogin();
    }
示例#4
0
    /// <summary>
    /// 初始化游戏
    /// </summary>
    private void Init()
    {
        ///服务模块 初始化;
        ResSever resSever = GetComponent <ResSever>();

        resSever.IniResSever();

        NetSvc net = GetComponent <NetSvc>();

        net.InitSvc();

        AudioSer audioSer = GetComponent <AudioSer>();

        audioSer.IniAudioSer();

        ///业务系统 初始化;
        LoginSystem loginSystem = GetComponent <LoginSystem>();

        loginSystem.IniSys();

        ///载入登陆场景:
        loginSystem.EnterLogin();
    }