
  public GameObject coinTriggerPrefab;
  public int segmentsDepth = 30;
  public float unitsWidth = 10f;
  public Vector3 up = Vector3.up;
  public int numberOfCoins = 10;

  [HideInInspector]
  public BezierSpline curve;
  [HideInInspector]
  public List<Vector3> tangents;
  [HideInInspector]
  public List<Vector3> normals;

  void Start() {