Exemplo n.º 1
0
 public int GetIndex(IntVector2 cell)
 {
     return(cell.y * gridSize.x + cell.x);
 }
Exemplo n.º 2
0
 public bool InBounds(IntVector2 cell)
 {
     return(cell.x >= 0 && cell.x < gridSize.x && cell.y >= 0 && cell.y < gridSize.y);
 }