Pathfinding.PathEndingCondition.TargetFound C# (CSharp) Method

TargetFound() public method

public TargetFound ( PathNode node ) : bool
node PathNode
return bool
		public virtual bool TargetFound (PathNode node) {
			return true;//node.node == p.endNode;
		}
	}

Usage Example

示例#1
0
        public override void Initialize()
        {
            base.Initialize();

            if (currentR != null && endingCondition.TargetFound(currentR))
            {
                CompleteState = PathCompleteState.Complete;
                endNode       = currentR.node;
                Trace(currentR);
            }
        }
All Usage Examples Of Pathfinding.PathEndingCondition::TargetFound