示例#1
0
 private void Start()
 {
     StaticReferences.EventSubject.Subscribe(this);
     mazeSpawnAlgorithmType = MazeSpawnAlgorithmType.BackTrackingRecursive;
     SetUpmazeSpawnerDropdown();
     generationFinished = true;
 }
示例#2
0
    private void SetUpSpawnMethod(MazeSpawnAlgorithmType mazeSpawnAlgorithmType)
    {
        switch (mazeSpawnAlgorithmType)
        {
        case MazeSpawnAlgorithmType.BackTrackingRecursive:
            SpawnMaze = SpawnBackTrackingRecursiveMaze;
            break;

        case MazeSpawnAlgorithmType.Kruskal:
            SpawnMaze = SpawnKruskalMaze;
            break;
        }
    }
示例#3
0
 public SpawnMazeEventArgs(Vector2Int mazeDimensions, MazeSpawnAlgorithmType mazeSpawnAlgorithmType)
 {
     MazeDimensions         = mazeDimensions;
     MazeSpawnAlgorithmType = mazeSpawnAlgorithmType;
 }
示例#4
0
 private void SetCurrentMazeCalculatingAlgorithm(int value)
 {
     mazeSpawnAlgorithmType = (MazeSpawnAlgorithmType)value;
 }