Exemplo n.º 1
0
        public void Start()
        {
            Debug.Log("热更新层启动!");
            m_FsmManager       = new FsmManager();
            m_ProcedureManager = new ProcedureManager();

            //初始化流程管理器并开始流程
            m_ProcedureManager.Initialize(m_FsmManager
                                          , new ProcedureHotfixEntry()
                                          , new ProcedureChangeScene()
                                          , new ProcedureHotfixTest()
                                          );

            m_ProcedureManager.StartProcedure <ProcedureHotfixEntry>();
        }
Exemplo n.º 2
0
        public static void Start()
        {
            Log.Info("热更新层启动!");

            Fsm       = new FsmManager();
            Procedure = new ProcedureManager();
            Event     = new EventManager();
            ETNetwork = new ETNetworkManager();

            //初始化ET网络
            ETNetwork.Init();

            //初始化流程管理器
            //TODO:可修改为使用反射获取到所有流程然后注册
            Procedure.Initialize(Fsm
                                 , new ProcedureHotfixEntry()
                                 , new ProcedureChangeScene()
                                 );

            //开始热更新层入口流程
            Procedure.StartProcedure <ProcedureHotfixEntry>();
        }