laser emitter module
This commit is contained in:
@@ -107,8 +107,9 @@ namespace EscapeRoomEngine.Engine.Runtime
|
||||
Space space;
|
||||
Passage exit;
|
||||
|
||||
// choose the next puzzle
|
||||
var puzzle = ChoosePuzzle();
|
||||
// choose a puzzle from the plan and remove it from both the plan and later available puzzles (so it is only chosen once)
|
||||
var puzzle = _plannedPuzzles.PopRandomElement();
|
||||
_availablePuzzles.Remove(puzzle);
|
||||
GameControl.Instance.CurrentPuzzle = puzzle;
|
||||
|
||||
do
|
||||
@@ -149,14 +150,6 @@ namespace EscapeRoomEngine.Engine.Runtime
|
||||
room.AddSpace(new Space(room, entrance), null);
|
||||
}
|
||||
|
||||
private PuzzleModuleDescription ChoosePuzzle()
|
||||
{
|
||||
// choose a puzzle from the plan and remove it from both the plan and later available puzzles (so it is only chosen once)
|
||||
var puzzle = _plannedPuzzles.PopRandomElement();
|
||||
_availablePuzzles.Remove(puzzle);
|
||||
return puzzle;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user