From 5fe7da43d3032341e22bb8ecbe5df2d1638ce628 Mon Sep 17 00:00:00 2001 From: milan Date: Fri, 18 Nov 2022 10:46:06 +0100 Subject: [PATCH] only trigger wrong input if puzzle is not solved yet --- .../Escape Room Engine/Engine/Scripts/Modules/PuzzleState.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Escape Room Engine/Engine/Scripts/Modules/PuzzleState.cs b/Assets/Escape Room Engine/Engine/Scripts/Modules/PuzzleState.cs index 99cfbde..4cfb269 100644 --- a/Assets/Escape Room Engine/Engine/Scripts/Modules/PuzzleState.cs +++ b/Assets/Escape Room Engine/Engine/Scripts/Modules/PuzzleState.cs @@ -83,7 +83,10 @@ namespace Escape_Room_Engine.Engine.Scripts.Modules [Button("Trigger Wrong Input", EButtonEnableMode.Playmode)] public void WrongInput() { - OnPuzzleEvent(PuzzleEventType.WrongInput); + if (!Solved) + { + OnPuzzleEvent(PuzzleEventType.WrongInput); + } } } } \ No newline at end of file