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