public void AddExitNode(MapNode node) { if (this.ExitNodes.Contains(node)) { Debug.LogError("MapNode.AddExitNode Error: Duplicate Exit Node"); Debug.Log("(" + this.Row + ", " + this.Position + ") adding (" + node.Row + ", " + node.Position + ")"); return; } if (node == this) { Debug.LogError("MapNode.AddExitNode Error: MapNode cannot add itself as ExitNode"); return; } this.ExitNodes.Add(node); node.AddEntranceNode(this); }