Пример #1
0
 public TilemapObject(Grid <TilemapObject> grid, int x, int y)
 {
     this.grid = grid;
     this.x    = x;
     this.y    = y;
 }
Пример #2
0
 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));
 }