コード例 #1
0
 public void DestroyRows(bool[] isFull, PistonSet set)
 {
     for (int i = set.LowestRow(); i < set.NextLowestRow(); ++i)
     {
         if (isFull[i])
         {
             DestroyRow(i);
         }
     }
 }
コード例 #2
0
 public void MoveRowsDown(bool[] isFull, int[] shiftAmount, PistonSet set)
 {
     for (int i = set.LowestRow(); i < set.NextLowestRow(); ++i)
     {
         if (!isFull[i])
         {
             MoveRowDown(i, -shiftAmount[i]);
         }
     }
 }
コード例 #3
0
ファイル: RowSlider.cs プロジェクト: roadmageb/tetra-tower
    public void SlideDown(bool[] isEmpty, PistonSet set)
    {
        isEmptyDebug = isEmpty;
        setDebug     = set;

        for (int row = set.LowestRow(); row < set.NextLowestRow(); ++row) // must be starting from 0
        {
            if (!isEmpty[row])
            {
                StartCoroutine(SlideDownRow(row));
            }
        }
    }