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