Intersects() private static method

private static Intersects ( Bounds b1, Bounds b2 ) : bool
b1 UnityEngine.Bounds
b2 UnityEngine.Bounds
return bool
Example #1
0
		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;
		}
Example #2
0
        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);
        }