Advertisement
Guest User

Untitled

a guest
Jul 7th, 2013
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1.     public void CollapseColumn(int column)
  2.     {
  3.         int gapCount = 0;
  4.         for (int y = 0; y < Layout.Height; y++)
  5.         {
  6.             GridPos pos = new GridPos(column, y);
  7.             if (Layout[pos] == null) gapCount++;
  8.             else Layout[pos].MoveDown(gapCount);
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement