Beispiel #1
0
 void adjustCurrentPosition(Selectable[] buttons)
 {
     int x = (int)currentPosition.x;
     int y = (int)currentPosition.y;
     if (x < 0)
     {
         //x += buttons.GetLength(0);
     }
     if (y < 0)
     {
         y += buttons.GetLength(0);
     }
     //x = x % buttons.GetLength(0);
     y = y % buttons.GetLength(0);
     currentPosition = new Vector2(x, y);
 }