예제 #1
0
 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;
     }
 }
예제 #2
0
 public void Initial(FlowGraphData graph)
 {
     if (isInitial)
     {
         return;
     }
     if (!IsDeserialize)
     {
         return;
     }
     isInitial     = true;
     IsDeserialize = false;
     this.graph    = graph;
     node          = CreateFlowNode();
 }