void AddUVs(int column, int row) { Vector2[] uv = MapAtlas.GetUVs(column, row); foreach (var u in uv) { //Debug.Log("Adding UV: " + u.x + ", " + u.y); uvs.Add(u); } }
void AddUVs(MapSegmentTile.Tile tile) { Vector2[] uv = MapAtlas.GetUVs(tile.templateColumn, tile.templateRow, (int)tile.rotation); foreach (var u in uv) { //Debug.Log("Adding UV: " + u.x + ", " + u.y); uvs.Add(u); } }