Pathfinding.GraphNode.Destroy C# (CSharp) Method

Destroy() public method

public Destroy ( ) : void
return void
		public void Destroy () {
			//Already destroyed
			if (nodeIndex == -1) return;
			
			ClearConnections(true);
			
			if (AstarPath.active != null) {
				AstarPath.active.DestroyNode(this);
			}
			nodeIndex = -1;
			//System.Console.WriteLine ("~");
		}