Esempio n. 1
0
        private static void SwapCells(LinesCell cell1, LinesCell cell2)
        {
            int  tempColor   = cell1.Type;
            bool tempIsEmpty = cell1.IsEmpty;

            cell1.SetState(cell2.IsEmpty, cell2.Type, false);
            cell2.SetState(tempIsEmpty, tempColor, false);
        }
Esempio n. 2
0
        private void SetCellToRandom(LinesCell cell)
        {
            int newColor = (Random.Range(0, colors.Count));

            cell.SetState(false, newColor, false);
        }