public TilemapObject(Grid <TilemapObject> grid, int x, int y) { this.grid = grid; this.x = x; this.y = y; }
public Tilemap(int width, int height, float cellSize, Vector3 originPosition) { grid = new Grid <TilemapObject>(width, height, cellSize, originPosition, (Grid <TilemapObject> g, int x, int y) => new TilemapObject(g, x, y)); }