public void GenerateMesh()
    {
        lineWidthSet = lineWidth;

        if (GetPolygon() != null)
        {
            mesh = Max2DMesh.GeneratePolygon2DMeshNew(transform, GetPolygon(), lineOffset, lineWidth, edgeCollider2D == false);
        }
    }
    public void GenerateMesh()
    {
        lineWidthSet = lineWidth;

        mesh = Max2DMesh.GeneratePolygon2DMeshNew(transform, GetPolygon(), lineOffset, lineWidth, connectedLine);
    }