Methods.FindEmptyNeighbor - notruilin/DeceptionGame GitHub Wiki

public List FindEmptyNeighbor(List list, int num, List addedToDeposit, int neighborRange);

Parameters

list A list of Vector3 positions as the standard
num The number of neighbors
addedToDeposit A list of Vector3 positions that cannot be picked
neighborRange The range of distance to neighbors

Description

Returns some empty grids around the given list of positions. Returns empty list if it is hard to find neighbors in this range.

⚠️ **GitHub.com Fallback** ⚠️