コード例 #1
0
        public override void PerformDragAndDrop()
        {
            var statemacro = DragAndDropUtility.Get <StateMacro>();
            var stateUnit  = new StateUnit(statemacro);

            context.canvas.AddUnit(stateUnit, DragAndDropUtility.position);
        }
コード例 #2
0
        public static StateUnit WithStart()
        {
            var stateUnit = new StateUnit();

            stateUnit.nest.source = GraphSource.Embed;
            stateUnit.nest.embed  = StateGraph.WithStart();
            return(stateUnit);
        }
コード例 #3
0
 private static IEnumerable <IUnitOption> GetStaticOptions()
 {
     yield return(StateUnit.WithStart().Option());
 }