Esempio n. 1
0
 private void TryToClearCell(Cell cell)
 {
     Debug.Log($"trying to clear cell {cell.gameObject.name} with index [{cell.Column}:{cell.Row}]");
     if (ClearingIsAllowed(cell))
     {
         Cell newPrevCell = _prevCell.GetPrevCell();
         _prevCell.Toggle(false);
         _prevCell.SetPrevCell(null);
         _prevCell = newPrevCell;
         _filledCellsCount--;
         _levelSettings.PlayClearSound();
     }
 }