Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1.     bool NodePositionTaken(BranchNode n, out BranchNode overlappedNode)
  2.     {
  3.         foreach (BranchNode b in nodeCollection)
  4.         {
  5.             if (b.transform.position == n.transform.position)
  6.             {
  7.                 overlappedNode = b;
  8.                 return true;
  9.             }
  10.         }
  11.         overlappedNode = null;
  12.         return false;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement