public override void PerformDragAndDrop() { var statemacro = DragAndDropUtility.Get <StateMacro>(); var stateUnit = new StateUnit(statemacro); context.canvas.AddUnit(stateUnit, DragAndDropUtility.position); }
public static StateUnit WithStart() { var stateUnit = new StateUnit(); stateUnit.nest.source = GraphSource.Embed; stateUnit.nest.embed = StateGraph.WithStart(); return(stateUnit); }
private static IEnumerable <IUnitOption> GetStaticOptions() { yield return(StateUnit.WithStart().Option()); }