示例#1
0
        /// <summary>
        /// 根据随机种子和障碍物生成概率创建 Map
        /// </summary>
        /// <param 随机种子="randomSeed"></param>
        /// <param 障碍物生成概率(0,1)="probability"></param>
        public void Create(int randomSeed, float probability)
        {
            List <Node> obstacleList = GenerateObstacleList(probability, mMapMgr.Width, mMapMgr.Height, randomSeed);

            mMapMgr.Reset();
            AddObstacles(obstacleList);
        }