public static List<NavmeshAdd> GetAllInRange(Bounds b) { List<NavmeshAdd> list = ListPool<NavmeshAdd>.Claim(); for (int i = 0; i < NavmeshAdd.allCuts.Count; i++) { if (NavmeshAdd.allCuts[i].enabled && NavmeshAdd.Intersects(b, NavmeshAdd.allCuts[i].GetBounds())) { list.Add(NavmeshAdd.allCuts[i]); } } return list; }
public static List <NavmeshAdd> GetAllInRange(Bounds b) { List <NavmeshAdd> list = ListPool <NavmeshAdd> .Claim(); for (int i = 0; i < NavmeshAdd.allCuts.get_Count(); i++) { if (NavmeshAdd.allCuts.get_Item(i).enabled&& NavmeshAdd.Intersects(b, NavmeshAdd.allCuts.get_Item(i).GetBounds())) { list.Add(NavmeshAdd.allCuts.get_Item(i)); } } return(list); }