Example #1
0
 public void Serach(SearchCheck check, List <Vector2G> tranversedCells, List <Actor> intersectedActors)
 {
     foreach (Vector2G cellCoord in tranversedCells)
     {
         if (cells.TryGetValue(cellCoord, out WorldCell cell))
         {
             cell.Search(check, intersectedActors);
         }
     }
 }
Example #2
0
 public void Search(SearchCheck check, List <Actor> intersectedActors)
 {
     intersectedActors.AddRange(check != null ? actors.Where(check.CheckActor) : actors);
 }