Ejemplo n.º 1
0
    void undoMove(ChangeWidthAction changeWidthAction)
    {
        if (changeWidthAction == null)
        {
            return;
        }

        nodes [changeWidthAction.IndexInList].Width = changeWidthAction.From;
    }
Ejemplo n.º 2
0
    void makeMove(ChangeWidthAction changeWidthAction)
    {
        if (changeWidthAction == null)
        {
            return;
        }

        nodes [changeWidthAction.IndexInList].Width = changeWidthAction.To;
    }
Ejemplo n.º 3
0
    void onFlagWidthChanged(Flag flag, float from, float to)
    {
        setNewCurrentFlag(flag);
        refreshLineRenderer();
        StageAction stageAction = new ChangeWidthAction(flags.IndexOf(flag), from, to);

        stage.MakeAndAddAction(stageAction);
        refreshViews();
        stage.RefreshGeometry();
    }