public void Init(RoadSegment p, RoadSegmentValues vals, MeshCrossection shape, Material mat) { this.parentScript = p; this.values = vals; this.materialToAssign = mat; this.shape2D = shape; GenerateMeshAndInit(); }
public void SetValuesToParent(RoadSegmentValues vals) { values = vals; }