IEnumerator SearchPaths () {
while (true) {
while (!repeatedlySearchPaths || waitingForPathCalc || !canSearchPath || Time.time - lastRepath < repathRate) yield return null;
//canSearchPath = false;
//waitingForPathCalc = true;
//lastRepath = Time.time;
//seeker.StartPath (tr.position, target.position);
UpdatePath ();
yield return null;
}
}