コード例 #1
0
ファイル: DataAnalysisAction.cs プロジェクト: SPLiHua/Skylark
        public static DataAnalysisAction Allocate()
        {
            DataAnalysisAction node = new DataAnalysisAction();

            DataAnalysisMgr.S.Init();
            return(node);
        }
コード例 #2
0
        public override void OnSingletonInit()
        {
            //需轮询module
            GetModule <ProcedureManager>();
            GetModule <InputModule>();

            //不需轮询,module
            SequenceNode sequenceNode = new SequenceNode();

            sequenceNode.Append(DataAnalysisAction.Allocate());
            sequenceNode.Append(EventAction.Allocate(() => { NetworkModule.S.Init(); }));
            sequenceNode.Append(TableAction.Allocate());
            sequenceNode.Append(EventAction.Allocate(() => { GamePersistentData.S.HandleTDData(); }));
            sequenceNode.Append(EventAction.Allocate(() => { GameDataMgr.S.Init(); }));
            sequenceNode.Append(EventAction.Allocate(() =>
            {
                GuideModule guideModule = new GuideModule();
                guideModule.OnInit();
            }));
            sequenceNode.OnEndedCallback += () => { GetModule <ProcedureManager>().StartProcedure <GamingProcedure>(); };
            ApplicationMgr.S.ExecuteNode(sequenceNode);
        }