public static void SetTile(Cell cell, Tile tile) { tile.ClearCell(); var position = tile.transform.localPosition; var scale = tile.transform.localScale; var rotation = tile.transform.localRotation; tile.transform.parent = cell.transform; tile.transform.localRotation = rotation; tile.transform.localPosition = position; tile.transform.localScale = scale; tile.Cell = cell; cell.Tile = tile; }