Intersects() private static method

private static Intersects ( Bounds b1, Bounds b2 ) : bool
b1 UnityEngine.Bounds
b2 UnityEngine.Bounds
return bool
Ejemplo n.º 1
0
		public static List<NavmeshCut> GetAllInRange(Bounds b)
		{
			List<NavmeshCut> list = ListPool<NavmeshCut>.Claim();
			for (int i = 0; i < NavmeshCut.allCuts.Count; i++)
			{
				if (NavmeshCut.allCuts[i].enabled && NavmeshCut.Intersects(b, NavmeshCut.allCuts[i].GetBounds()))
				{
					list.Add(NavmeshCut.allCuts[i]);
				}
			}
			return list;
		}
Ejemplo n.º 2
0
        public static ListView <NavmeshCut> GetAllInRange(Bounds b)
        {
            ListView <NavmeshCut> listView = new ListView <NavmeshCut>();

            for (int i = 0; i < NavmeshCut.allCuts.Count; i++)
            {
                if (NavmeshCut.allCuts[i].enabled && NavmeshCut.Intersects(b, NavmeshCut.allCuts[i].GetBounds()))
                {
                    listView.Add(NavmeshCut.allCuts[i]);
                }
            }
            return(listView);
        }