Exemplo n.º 1
0
    public void AddLine(Vector2 v1, Vector3 v2, LineType.LineTypes t)
    {
        Line l = new Line(v1, v2);

        l.lineType = t;
        lines.Add(l);
        DrawLine(l);

        Command.LineCommand c = new Command.LineCommand();
        c.createdLine = l;

        // LineEditor.main.AddCommand(c);
    }
Exemplo n.º 2
0
    public void ExecuteStack()
    {
        Command c = commandStack[stackIndex];

        if (c is Command.EraseCommand)
        {
            Command.EraseCommand e = (Command.EraseCommand)c;
        }
        else
        {
            Command.LineCommand l = (Command.LineCommand)c;
        }
    }