Beispiel #1
0
	void setRageSpline(Vector2[] splinePoints) {
		rageSpline = GetComponent<RageSpline>();
		rageSpline.ClearPoints();
		for (int i=0;i<splinePoints.Length;i++) {
			rageSpline.AddPoint(0, new Vector3(splinePoints[i].x,splinePoints[i].y,0),new Vector3(0,0,0));
		}
		rageSpline.RefreshMesh();
	}
Beispiel #2
0
    void setRageSpline(Vector2[] splinePoints)
    {
        IRageSpline rageSpline = GetComponent <RageSpline>();

        rageSpline.ClearPoints();
        for (int i = 0; i < splinePoints.Length; i++)
        {
            rageSpline.AddPoint(0, new Vector3(splinePoints[i].x, splinePoints[i].y, 0), new Vector3(0, 0, 0));
        }
        rageSpline.RefreshMesh();
    }