Beispiel #1
0
        private void CreatePassage(MazeCell currentCell, MazeCell neighbor, MazeDirection direction)
        {
            MazePassage passage = Instantiate(passagePrefab) as MazePassage;

            passage.Init(currentCell, neighbor, direction);

            passage = Instantiate(passagePrefab) as MazePassage;
            passage.Init(neighbor, currentCell, direction.GetOpposite());
        }