コード例 #1
0
ファイル: FallSystem.cs プロジェクト: takaaptech/Match-One
 void moveDown(Entity e, int column, int row, Entity[,] grid)
 {
     var nextRowPos = grid.GetNextEmptyRow(column, row);
     if (nextRowPos != row) {
         grid[column, nextRowPos] = e;
         grid[column, row] = null;
         e.ReplacePosition(column, nextRowPos);
     }
 }