public static FlowGraphExecutor Execute(FlowGraph flowGraph, Action finishCallback = null)
        {
            if (flowGraph == null || !flowGraph.Initialize())
            {
                Log.Error("[FlowGraphExecutor.Execute] flow graph is null or invalid");
                return(null);
            }

            FlowGraphExecutor executor = GetOrCreateFlowGraphExecutor();

            executor._flowGraph      = flowGraph;
            executor._finishDelegate = finishCallback;

            return(executor.Execute());
        }
Esempio n. 2
0
 private void Execute()
 {
     FlowGraphExecutor.Execute(flowGraph);
 }