Inheritance: PathEndingCondition
Exemplo n.º 1
0
 /** Creates a new ConstantPath starting from the specified point.
  * \param start             From where the path will be started from (the closest node to that point will be used)
  * \param maxGScore			Searching will be stopped when a node has a G score greater than this
  * \param callbackDelegate	Will be called when the path has completed, leave this to null if you use a Seeker to handle calls
  *
  * Searching will be stopped when a node has a G score (cost to reach it) greater than \a maxGScore */
 public ConstantPath(Vector3 start, int maxGScore, OnPathDelegate callbackDelegate) : base(start, Vector3.zero, callbackDelegate)
 {
     endingCondition = new EndingConditionDistance(maxGScore);
     hasEndPoint     = false;
 }
Exemplo n.º 2
0
		/** Creates a new ConstantPath starting from the specified point.
		 * \param start 			From where the path will be started from (the closest node to that point will be used)
		 * \param maxGScore			Searching will be stopped when a node has a G score greater than this
		 * \param callbackDelegate	Will be called when the path has completed, leave this to null if you use a Seeker to handle calls
		 * 
		 * Searching will be stopped when a node has a G score (cost to reach it) greater than \a maxGScore */
		public ConstantPath (Vector3 start, int maxGScore, OnPathDelegate callbackDelegate) : base (start,Vector3.zero,callbackDelegate) {
			endingCondition = new EndingConditionDistance (maxGScore);
			hasEndPoint = false;
		}