コード例 #1
0
        /// <summary>
        /// Gets a list of cells with height > 0.1f and colors them in white
        /// </summary>
        void ShowMountains()
        {
            List <Cell> highCells = map.GetCellsByAltitude(0.1f, 1f);
            int         cellCount = highCells.Count;
            Color       color     = new Color(1f, 1f, 1f, 0.8f);

            for (int k = 0; k < cellCount; k++)
            {
                int cellIndex = map.GetCellIndex(highCells [k]);
                map.ToggleCellSurface(cellIndex, color);
            }
        }