Exemplo n.º 1
0
		/** Sets up a ConstantPath starting from the specified point */
		protected void Setup (Vector3 start, int maxGScore, OnPathDelegate callback) {
			this.callback = callback;
			startPoint = start;
			originalStartPoint = startPoint;

			endingCondition = new EndingConditionDistance (this,maxGScore);
		}
Exemplo n.º 2
0
		public override void Reset () {
			base.Reset ();
			endingCondition = null;
		}
Exemplo n.º 3
0
		/** Reset the path to default values.
		 * Clears the #allNodes list.
		 * \note This does not reset the #endingCondition.
		 *
		 * Also sets #heuristic to Heuristic.None as it is the default value for this path type
		 */
		public override void Reset ()
		{
			base.Reset ();
			allNodes = ListPool<GraphNode>.Claim ();
			endingCondition = null;
			originalStartPoint = Vector3.zero;
			startPoint = Vector3.zero;
			startNode = null;
			heuristic = Heuristic.None;
		}