static public void UpdateVegetationMaskLine(GameObject go, ERVSData[] vsData, float grassPerimeter, float plantPerimeter, float treePerimeter, float objectPerimeter, float largeObjectPerimeter)
    {
                #if VEGETATION_STUDIO || VEGETATION_STUDIO_PRO
        AwesomeTechnologies.VegetationMaskLine vegetationMaskLine = go.GetComponent <AwesomeTechnologies.VegetationMaskLine>();

        if (vegetationMaskLine == null)
        {
            vegetationMaskLine = go.AddComponent <AwesomeTechnologies.VegetationMaskLine>();
        }
        vegetationMaskLine.AdditionalGrassPerimiter       = grassPerimeter;
        vegetationMaskLine.AdditionalPlantPerimiter       = plantPerimeter;
        vegetationMaskLine.AdditionalTreePerimiter        = treePerimeter;
        vegetationMaskLine.AdditionalObjectPerimiter      = objectPerimeter;
        vegetationMaskLine.AdditionalLargeObjectPerimiter = largeObjectPerimeter;

        vegetationMaskLine.ClearNodes();


        foreach (ERVSData data in vsData)
        {
            vegetationMaskLine.AddNodeToEnd(data.position, data.width, data.active);
        }


        //	vegetationMaskLine.AddNodeToEnd(nodePositions[0], widths[0], activeStates[0]);

        vegetationMaskLine.UpdateVegetationMask();
                #endif
    }
    static public void CreateVegetationMaskLine(GameObject go, float grassPerimeter, float plantPerimeter, float treePerimeter, float objectPerimeter, float largeObjectPerimeter)
    {
                #if VEGETATION_STUDIO || VEGETATION_STUDIO_PRO
        AwesomeTechnologies.VegetationMaskLine vegetationMaskLine = go.GetComponent <AwesomeTechnologies.VegetationMaskLine>();

        if (vegetationMaskLine == null)
        {
            vegetationMaskLine = go.AddComponent <AwesomeTechnologies.VegetationMaskLine>();
        }

        vegetationMaskLine.AdditionalGrassPerimiter       = grassPerimeter;
        vegetationMaskLine.AdditionalPlantPerimiter       = plantPerimeter;
        vegetationMaskLine.AdditionalTreePerimiter        = treePerimeter;
        vegetationMaskLine.AdditionalObjectPerimiter      = objectPerimeter;
        vegetationMaskLine.AdditionalLargeObjectPerimiter = largeObjectPerimeter;
                #endif
    }
 public void Awake()
 {
     //base.Awake();
     VegetationMaskLine = (VegetationMaskLine)target;
 }