public static void UpdateTileGridOrientations <TPoint, TCell>( IGrid <TPoint, TCell> grid, GridMap <TPoint> map) where TCell : MonoBehaviour { grid.Apply(p => UpdateOrientation(grid, map, p)); }