示例#1
0
 public static Surface[] OverlapExplosionUnique(Vector3 point, float explosionRadius, int findLayerMask = -1, int occludingLayerMask = -1, IDMain ignore = null)
 {
     Surface[] array = OverlapExplosion(point, explosionRadius, findLayerMask, occludingLayerMask, ignore);
     int length = array.Length;
     if (length > 1)
     {
         Array.Sort<Surface>(array);
         if (Unique.Filter(array, ref length))
         {
             Array.Resize<Surface>(ref array, length);
         }
     }
     return array;
 }