Beispiel #1
0
        public void Reset()
        {
            var edgeGrid = grid.MakeEdgeGrid <int>();

            foreach (PointyRhombPoint point in edgeGrid)
            {
                edgeGrid[point] = Random.Range(0, 2);
            }

            foreach (var point in grid)
            {
                var cell = grid[point];

                cell.SetAngle(-30);
                SetCellSprite(edgeGrid, point, cell);
            }

            RandomRotateCells();
            UpdateHighlights();
        }