private MazeDoor CreateDoor(MazeCell cell, MazeDirection direction)
    {
        MazeDoor door = Instantiate(doorPrefab) as MazeDoor;

        door.Initialize(cell, direction);
        return(door);
    }
Exemple #2
0
    private void CreatePassage(MazeCell cell, MazeCell otherCell, MazeDirection direction)
    {
        MazeDoor passage = Instantiate(doorPrefab) as MazeDoor;

        passage.Initialize(cell, otherCell, direction);
    }