コード例 #1
0
 private void Awake()
 {
     if (spline == null)
     {
         spline = GetComponent <SplineMonoBehaviour>();
     }
     meshFilter = GetComponent <MeshFilter>();
 }
コード例 #2
0
        public SplineFollower Setup(
            SplineMonoBehaviour spline,
            SplineFollowBehaviour followBehaviour
            )
        {
            this.spline           = spline;
            this.followBehaviour  = followBehaviour;
            interpolateAmount     = 0f;
            backAndForthDirection = 1f;

            enabled = true;
            return(this);
        }