/// <summary> /// Generates map /// </summary> public void Generate() { Profiler.BeginSample("MapGen"); graph = new Graph(Seed); graph.Generate(10000, 0.025f, 2); GraphAddNoise(); graph.UpdateCornersPosition(); graph.UpdateNodesPosition(); WaterLevel = GenerateWater(WaterPercentage); graph.SetCornersMinLevel(WaterLevel); MountainLevel = GenerateMountains(MountainPercentage); GenerateMountaintops(0.05f); GenerateRivers(200); CreateMapObjects(); CreateOctree(); Profiler.EndSample(); }