Pathfinding.ConstantPath.Prepare C# (CSharp) Method

Prepare() public method

public Prepare ( ) : void
return void
		public override void Prepare () {
			nnConstraint.tags = enabledTags;
			NNInfo startNNInfo 	= AstarPath.active.GetNearest (startPoint,nnConstraint);
			
			startNode = startNNInfo.node;
			if (startNode == null) {
				Error ();
				LogError ("Could not find close node to the start point");
				return;
			}
		}