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); } }
public void RegisterWall(HouseWall wall) { Walls.Add(wall); }