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