Пример #1
0
    private MazeDoor CreateDoor(MazeCell cell, MazeDirection direction)
    {
        MazeDoor door = Instantiate(doorPrefab) as MazeDoor;

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

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