Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (buildingBlock.name.Contains("foundation"))
- {
- var position = new OBB(buildingBlock.transform, buildingBlock.bounds).ToBounds().center;
- var stashes = Pool.GetList<StashContainer>();
- Vis.Entities(position, 3f, stashes, 1);
- if (stashes.Count != 0)
- {
- Pool.FreeList(ref stashes);
- return false;
- }
- Pool.FreeList(ref stashes);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement