Exemple #1
0
    private void RandomizeWalls()
    {
        List <HouseWall> UnusedWalls = new List <HouseWall>(Walls);

        for (int i = 0; i < WallPuzzles; i++)
        {
            int       index = Random.Range(0, UnusedWalls.Count);
            HouseWall wall  = UnusedWalls[index];
            UnusedWalls.Remove(wall);
            Puzzle puzzle = wall.SpawnPuzzle();
            UnsolvedPuzzles.Add(puzzle);
        }
    }
Exemple #2
0
 public void RegisterWall(HouseWall wall)
 {
     Walls.Add(wall);
 }