// Use this for initialization IEnumerator Start() { mSpline = GetComponent<CurvySpline>(); Walker = GameObject.FindObjectOfType(typeof(FollowSpline)) as FollowSpline; while (!mSpline.IsInitialized) yield return null; }
// Use this for initialization void Start () { walkerScript = GetComponent<FollowSpline>(); mMat = renderer.material; }