setPosition() public méthode

public setPosition ( Vector2 pos ) : void
pos Vector2
Résultat void
Exemple #1
0
 private void positionThumbs(List <ImageButton> thumbs)
 {
     for (int i = 0; i < thumbs.Count; i++)
     {
         ImageButton thumb = thumbs[i];
         thumb.setPosition(new Vector2(200 * (i % THUMBROWSIZE), (float)Math.Floor((i / 8f)) * 120 + 600));
     }
 }
Exemple #2
0
 private void positionThumbs(List <ImageButton> thumbs)
 {
     for (int i = 0; i < thumbs.Count; i++)
     {
         ImageButton thumb = thumbs[i];
         thumb.setPosition(new Vector2(200 * (i % THUMBROWSIZE) + 601, (i / THUMBROWSIZE) * 200 + 278));
     }
 }