public static void InitializedNewGraph(FlowGraphData graph) { if ((graph.flags & FlowGraphDataFlags.InitializedNew) != FlowGraphDataFlags.InitializedNew) { graph.AddNode(new GraphStartEvent(), new Vector2(50, 100)); graph.AddNode(new GraphStopEvent(), new Vector2(50, 300)); graph.flags |= FlowGraphDataFlags.InitializedNew; } }
public void Initial(FlowGraphData graph) { if (isInitial) { return; } if (!IsDeserialize) { return; } isInitial = true; IsDeserialize = false; this.graph = graph; node = CreateFlowNode(); }