Ejemplo n.º 1
0
        public void initGVar()
        {
            m_gotoScene = new GotoScene();

            // 游戏逻辑处理
            Ctx.m_instance.m_cbUIEvent = new GameUIEventCB();
            m_gameNetHandleCB          = new GameNetHandleCB();
            Ctx.m_instance.m_netDispList.addOneDisp(m_gameNetHandleCB);
            m_gameRouteCB = new GameRouteCB();
            Ctx.m_instance.m_msgRouteList.addOneDisp(m_gameRouteCB);
            Ctx.m_instance.m_netDispList.bStopNetHandle = false;     // 停止网络消息处理
            Ctx.m_instance.m_sceneEventCB = new GameSceneEventCB();
            Ctx.m_instance.m_sceneLogic   = new GameSceneLogic();

            m_gotoScene.addSceneHandle();

            //Ctx.m_instance.m_meshMgr.loadSkinInfo();
            //Ctx.m_instance.m_aiSystem.getBehaviorTreeMgr().loadBT();

            // 立即加载 UIBlurBg 界面
            Ctx.m_instance.m_uiMgr.loadForm(UIFormID.eUIBlurBg);
        }
Ejemplo n.º 2
0
        public void initGVar()
        {
            m_gotoScene = new GotoScene();

            // 游戏逻辑处理
            Ctx.m_instance.m_cbUIEvent = new GameUIEventCB();
            m_gameNetHandleCB = new GameNetHandleCB();
            Ctx.m_instance.m_netDispList.addOneDisp(m_gameNetHandleCB);
            m_gameRouteCB = new GameRouteCB();
            Ctx.m_instance.m_msgRouteList.addOneDisp(m_gameRouteCB);
            Ctx.m_instance.m_netDispList.bStopNetHandle = false;     // 停止网络消息处理
            Ctx.m_instance.m_sceneEventCB = new GameSceneEventCB();
            Ctx.m_instance.m_sceneLogic = new GameSceneLogic();

            m_gotoScene.addSceneHandle();

            //Ctx.m_instance.m_meshMgr.loadSkinInfo();
            //Ctx.m_instance.m_aiSystem.getBehaviorTreeMgr().loadBT();

            // 立即加载 UIBlurBg 界面
            Ctx.m_instance.m_uiMgr.loadForm(UIFormID.eUIBlurBg);
        }
Ejemplo n.º 3
0
 protected void testThreadTask()
 {
     GameRouteCB m_gameRouteCB = new GameRouteCB();
     Ctx.m_instance.m_msgRouteList.addOneDisp(m_gameRouteCB);
 }