setPosition() 공개 메소드

public setPosition ( Vector2 pos ) : void
pos Vector2
리턴 void
예제 #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));
     }
 }
예제 #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));
     }
 }