Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        pathcreator = GetComponent <PathCreator>();
        meshCreator = GetComponent <RoadMeshCreator>();

        pathcreator.bezierPath = new BezierPath(points, false, PathSpace.xy);
        pathcreator.bezierPath.ControlPointMode  = BezierPath.ControlMode.Automatic;
        pathcreator.bezierPath.AutoControlLength = 0.02f;
        meshCreator.roadWidth = roadWidth;


        meshCreator.CreatePath();
    }
 private void Start()
 {
     roadMeshCreator.CreatePath();
 }