Example #1
0
        IEnumerator IlluminateRoadCells(List <int> cellIndices)
        {
            WaitForEndOfFrame nextFrame = new WaitForEndOfFrame();

            for (int k = 0; k < cellIndices.Count; k++)
            {
                map.SetCellColor(cellIndices [k], new Color(1, 1, 0, 0.5f));
                yield return(nextFrame);
            }
            for (int k = 0; k < cellIndices.Count; k++)
            {
                map.ClearCell(cellIndices [k]);
                yield return(nextFrame);
            }
        }