예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }