/** 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); }
/** 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 */ protected override void Reset() { base.Reset(); allNodes = ListPool <GraphNode> .Claim(); endingCondition = null; originalStartPoint = Vector3.zero; startPoint = Vector3.zero; startNode = null; heuristic = Heuristic.None; }
protected override void Reset() { base.Reset(); endingCondition = null; }