Example #1
0
 void SwitchCellTo(BoardLayer baselayer, BoardLayer destlayer, Vector3Int moveOffset)
 {
     for (int i = 0; i < cellSize; i++)
     {
         for (int j = 0; j < cellSize; j++)
         {
             cells[i, j] = gameBoard.SwitchCellLayerTo(baselayer, destlayer, cells[i, j], moveOffset);
         }
     }
 }
 void SwitchCellTo(int gridLayer, Vector3Int moveOffset)
 {
     for (int y = 0; y < minoSizeY; y++)
     {
         for (int x = 0; x < minoSizeX; x++)
         {
             cells[y, x] = gameBoardS.SwitchCellLayerTo(gridLayer, cells[y, x], moveOffset);
         }
     }
 }