This commit is contained in:
2026-06-09 22:48:04 +07:00
parent 1c8544d383
commit 435fbccad5
5 changed files with 193 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ namespace Hallucinate.GameSetup.Maze
/// </summary>
public class MazeManager : MonoBehaviour
{
public enum AlgorithmType { Recursive, Wilsons, Prims, Crawler }
public enum AlgorithmType { Recursive, Wilsons, Prims, Crawler, NoiseRecursive }
[BoxGroup("Generation")]
[InfoBox("Set the array size to control how many maze floors are generated. Runtime grid data is rebuilt when Regenerate runs.")]
@@ -215,6 +215,7 @@ namespace Hallucinate.GameSetup.Maze
AlgorithmType.Wilsons => new WilsonsAlgorithm(),
AlgorithmType.Prims => new PrimsAlgorithm(),
AlgorithmType.Crawler => new CrawlerAlgorithm(),
AlgorithmType.NoiseRecursive => new NoiseRecursiveGenerator(),
_ => new RecursiveAlgorithm()
};
}