// 取某点周围一定范围内的格子内的所有实体 public IList <U3D_Render.EntityView> Nearest(UnityEngine.Vector3 loc, int dist, SPELL.CampFlag flag) { UnityEngine.Vector3 normalLoc = AdjustLoc(loc); List <U3D_Render.EntityView> result = new List <EntityView>(); m_gridTree.k_nearest(flag, normalLoc, dist, ref result); return(result); }