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