using Dreamteck.Splines; using System.Collections; using System.Collections.Generic; using UnityEngine; public class SplineSetter : MonoBehaviour { private SplineFollower _follower; private void Awake() { _follower = GetComponent(); _follower.spline = GetComponentInParent(); } }