Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool NodePositionTaken(BranchNode n, out BranchNode overlappedNode)
- {
- foreach (BranchNode b in nodeCollection)
- {
- if (b.transform.position == n.transform.position)
- {
- overlappedNode = b;
- return true;
- }
- }
- overlappedNode = null;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement