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

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

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

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

        timer.InitSvc();


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

        login.InitSys();
        MainCitySys maincity = GetComponent <MainCitySys>();

        maincity.InitSys();
        FubenSys fuben = GetComponent <FubenSys>();

        fuben.InitSys();
        BattleSys battle = GetComponent <BattleSys>();

        battle.InitSys();

        //进入登录场景并加载相应UI
        login.EnterLogin();
    }
Ejemplo n.º 2
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();
    }
Ejemplo n.º 3
0
    private void Init()
    {
        //服务模块初始化
        NetSvc netSvc = GetComponent <NetSvc>();

        netSvc.InitSvc();

        ResSvc res = GetComponent <ResSvc>();

        res.InitSvc();

        AudioSvc audioSvc = GetComponent <AudioSvc>();

        audioSvc.InitSvc();


        //业务系统初始化
        LoginSyc logSyc = GetComponent <LoginSyc>();

        logSyc.InitSys();
        MainCitySyc mainCitySyc = GetComponent <MainCitySyc>();

        mainCitySyc.InitSys();


        //窗口初始化
        //进入登录场景并加载UI
        logSyc.EnterLogin();
    }
Ejemplo n.º 4
0
    private void Init()
    {
        //服务模块初始化
        ResSvc res = GetComponent <ResSvc>();

        res.InitSvc();
        NetSvc net = GetComponent <NetSvc>();

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

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

        timer.InitSvc();

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

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

        mainCitySys.InitSys();
        FubenSys fubenSys = GetComponent <FubenSys>();

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

        battleSys.InitSys();

        dynamicWind.SetWindowState();
        //进入登入场景并加载UI
        login.EnterLogin();
    }
Ejemplo n.º 5
0
    public void Start()
    {
        netSvc = GetComponent <NetSvc>();
        netSvc.InitSvc();

        Debug.Log("GameApp Start...");
    }
Ejemplo n.º 6
0
    /// <summary>
    /// 初始化各个业务系统和服务模块,应当先初始化服务后初始化业务
    /// </summary>
    private void Init()
    {
        // 服务模块初始化
        NetSvc net = GetComponent <NetSvc>();

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

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

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

        timer.InitSvc();

        // 业务模块初始化
        LoginSys login = GetComponent <LoginSys>();

        login.InitSys();
        MainCitySys mainCity = GetComponent <MainCitySys>();

        mainCity.InitSys();
        DungeonSys dungeonSys = GetComponent <DungeonSys>();

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

        battleSys.InitSys();

        // 显示动态窗口
        dynamicWnd.SetWndState();
        // 进入登录场景并加载相应 UI
        login.EnterLogin();
    }
Ejemplo n.º 7
0
    /// <summary>
    /// 初始化所有模块
    /// </summary>
    void Init()
    {
        //初始化服务模块
        mResSvc = GetComponent <ResSvc>();
        mResSvc.InitSvc();

        mNetSvc = GetComponent <NetSvc>();
        mNetSvc.InitSvc();

        mAudioSvc = GetComponent <AudioSvc>();
        mAudioSvc.InitAudio();

        //初始化业务系统
        mLogonSys = GetComponent <LogonSys>();
        mLogonSys.InitSys();

        mMainGameSys = GetComponent <MainGameSys>();
        mMainGameSys.InitMainGameSys();

        mCombatSys = GetComponent <CombatSys>();
        mCombatSys.InitCombatSys();
        //初始化控制器模块
        mControllerMag = new ControllerManage();
        mControllerMag.InitController();


        //进入登录系统
        mLogonSys.EnterLogin();
    }
Ejemplo n.º 8
0
    /// <summary>
    /// 初始化数据
    /// </summary>
    private void Init()
    {
        // 服务模块初始化
        NetSvc netSvc = GetComponent <NetSvc>();

        netSvc.InitSvc();

        ResSvc res = GetComponent <ResSvc>();

        res.InitSvc();

        AudioSvc audioSvc = GetComponent <AudioSvc>();

        audioSvc.InitSvc();

        TimerSvc timerSvc = GetComponent <TimerSvc>();

        timerSvc.InitSvc();

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

        login.InitSys();

        MainCitySys mainCity = GetComponent <MainCitySys>();

        mainCity.InitSys();

        FubenSys fuben = GetComponent <FubenSys>();

        fuben.InitSys();

        BattleSys battle = GetComponent <BattleSys>();

        battle.InitSys();

        // 进入登陆场景,并加载相应UI
        login.EnterLogin();


        // 显示动态窗口,并显示在最顶层
        dynamicWnd.SetWndState();
        dynamicWnd.transform.SetAsLastSibling();
    }
Ejemplo n.º 9
0
    /// <summary>
    /// 初始化
    /// </summary>
    private void Init()
    {
        //服务模块初始化
        NetSvc netSvc = GetComponent <NetSvc>();

        netSvc.InitSvc();

        TimerSvc timerSvc = GetComponent <TimerSvc>();

        timerSvc.InitSvc();

        ResSvc resSvc = GetComponent <ResSvc>();

        resSvc.InitResSvc();

        AudioSvc audioSvc = GetComponent <AudioSvc>();

        audioSvc.InitAudioSvc();

        //业务系统
        LoginSys loginSys = GetComponent <LoginSys>();

        loginSys.InitSys();

        MainCitySys mainCitySys = GetComponent <MainCitySys>();

        mainCitySys.InitSys();

        CopyerSys copyerSys = GetComponent <CopyerSys>();

        copyerSys.InitSys();

        BattleSys battleSys = GetComponent <BattleSys>();

        battleSys.InitSys();

        //只打开dynamicWnd
        _dynamicWnd.SetWndState(true);

        //进入登陆场景并加载相应UI
        loginSys.EnterLogin();
    }
Ejemplo n.º 10
0
    void Init()
    {
        NetSvc netSvc = GetComponent <NetSvc>();

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

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

        audioSvc.InitSvc();

        LoginSys loginSys = GetComponent <LoginSys>();

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

        citySys.InitSys();

        loginSys.EnterLogin();
    }
Ejemplo n.º 11
0
    void Init()
    {
        //服务模块初始化
        NetSvc net = GetComponent <NetSvc>();

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

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

        audio.InitSvc();

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

        login.InitSys();

        //进入登录场景并加载相应UI
        login.EnterLogin();
    }
Ejemplo n.º 12
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();
    }
Ejemplo n.º 13
0
    private void Init()
    {
        //服务器模块初始化
        NetSvc net = GetComponent <NetSvc>();

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

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

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

        timerSvc.InitSvc();

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

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

        mainCitySys.InitSys();
        FubenSys fubenSys = GetComponent <FubenSys>();

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

        battleSys.InitSys();

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

        TimerSvc.Instance.AddTimeTask((int tid) =>
        {
            PECommon.Log("TEST Timer");
        }, 1000);
    }
Ejemplo n.º 14
0
    private void Init()
    {
        //服务模块初始化
        ResSvc resSvc = GetComponent <ResSvc>();

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

        audioSvc.InitSvc();
        NetSvc netSvc = GetComponent <NetSvc>();

        netSvc.InitSvc();
        TimerSvc timeSvc = GetComponent <TimerSvc>();

        timeSvc.InitSvc();

        //业务系统初始化
        LoginSys loginSys = GetComponent <LoginSys>();

        loginSys.InitSys();

        //主城系统初始化
        MainCitySys mainCitySys = GetComponent <MainCitySys>();

        mainCitySys.InitSys();

        //副本系统初始化
        FuBenSys fubenSys = GetComponent <FuBenSys>();

        fubenSys.InitSys();

        BattleSys battleSys = GetComponent <BattleSys>();

        battleSys.InitSys();

        //进入登录界面并 加载UI
        loginSys.EnterLogin();
    }
Ejemplo n.º 15
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();
    }