Advertisement
Guest User

code snippet removertool

a guest
Sep 11th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. if (buildingBlock.name.Contains("foundation"))
  2. {
  3. var position = new OBB(buildingBlock.transform, buildingBlock.bounds).ToBounds().center;
  4. var stashes = Pool.GetList<StashContainer>();
  5. Vis.Entities(position, 3f, stashes, 1);
  6. if (stashes.Count != 0)
  7. {
  8. Pool.FreeList(ref stashes);
  9. return false;
  10. }
  11. Pool.FreeList(ref stashes);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement