private void Start() { StaticReferences.EventSubject.Subscribe(this); mazeSpawnAlgorithmType = MazeSpawnAlgorithmType.BackTrackingRecursive; SetUpmazeSpawnerDropdown(); generationFinished = true; }
private void SetUpSpawnMethod(MazeSpawnAlgorithmType mazeSpawnAlgorithmType) { switch (mazeSpawnAlgorithmType) { case MazeSpawnAlgorithmType.BackTrackingRecursive: SpawnMaze = SpawnBackTrackingRecursiveMaze; break; case MazeSpawnAlgorithmType.Kruskal: SpawnMaze = SpawnKruskalMaze; break; } }
public SpawnMazeEventArgs(Vector2Int mazeDimensions, MazeSpawnAlgorithmType mazeSpawnAlgorithmType) { MazeDimensions = mazeDimensions; MazeSpawnAlgorithmType = mazeSpawnAlgorithmType; }
private void SetCurrentMazeCalculatingAlgorithm(int value) { mazeSpawnAlgorithmType = (MazeSpawnAlgorithmType)value; }