Exemplo n.º 1
0
 public void movePosition(int dx, int dy)
 {
     xPositionOnScreen += dx;
     yPositionOnScreen += dy;
     inventory.movePosition(dx, dy);
     if (okButton != null)
     {
         okButton.bounds.X += dx;
         okButton.bounds.Y += dy;
     }
     if (trashCan != null)
     {
         trashCan.bounds.X += dx;
         trashCan.bounds.Y += dy;
     }
     if (dropItemInvisibleButton != null)
     {
         dropItemInvisibleButton.bounds.X += dx;
         dropItemInvisibleButton.bounds.Y += dy;
     }
 }