Пример #1
0
    public void Concatenate(MPath path2)
    {
        var list1 = GetPositions();
        var list2 = path2.GetPositions();

        list1.AddRange(list2);
        SetPositions(list1);

        var list1n = line.GetNormals();
        var list2n = path2.line.GetNormals();

        list1n.AddRange(list2n);
        line.SetNormals(list1n);
        Destroy(path2);
        dotTo = path2.dotTo;

        line.SetMesh();
    }