internal static void MarkObstacleLine(List <Vector3> pts, CellManager cellMgr, byte obstacle) { List <CellPos> cells = cellMgr.GetCellsCrossByPolyline(pts); foreach (CellPos cell in cells) { cellMgr.SetCellStatus(cell.row, cell.col, obstacle); } }
private void MarkObstacleLine(List <Vector3> pts, CellManager cellMgr, byte obstacle) { List <CellPos> pos_list = cellMgr.GetCellsCrossByPolyline(pts); foreach (CellPos pos in pos_list) { cellMgr.SetCellStatus(pos.row, pos.col, obstacle); } }