public Transform Get(int x, int y) // Gets object at index x and y { try { return((Transform)gridService.GetValue(x, y)); } catch (IndexOutOfRangeException) { return(null); } }
public object Get(int x, int y) { return(grid.GetValue(x, y)); }