コード例 #1
0
ファイル: Player.cs プロジェクト: kaushal135/Maze-Generator
    private void Move(mazeDirection direction)
    {
        mazeCellEdge edge = currentCell.GetEdge(direction);

        if (edge is mazePassage)
        {
            SetLocation(edge.otherCell);
        }
    }
コード例 #2
0
 public void SetEdge(mazeDirection direction, mazeCellEdge edge)
 {
     edges[(int)direction] = edge;
     initializedEdgeCount += 1;
 }