Pathfinding.RichAI.UpdateTarget C# (CSharp) Method

UpdateTarget() protected method

protected UpdateTarget ( RichFunnel fn ) : Vector3
fn RichFunnel
return UnityEngine.Vector3
		protected virtual Vector3 UpdateTarget ( RichFunnel fn ) {
			buffer.Clear ();
			/* Current position. We read and write to tr.position as few times as possible since doing so
					 * is much slower than to read and write from/to a local variable
					 */
			Vector3 position = tr.position;
			bool requiresRepath;
			position = fn.Update (position, buffer, 2, out lastCorner, out requiresRepath);
	
			if (requiresRepath && !waitingForPathCalc) {
				UpdatePath ();
			}
	
			return position;
		}