From a921d4891e31f7fa5f3085d21a1f35dc1a9a1204 Mon Sep 17 00:00:00 2001 From: NIMFER Date: Sat, 28 Aug 2021 12:49:28 +0200 Subject: [PATCH] test --- Assets/Scripts/Trap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Trap.cs b/Assets/Scripts/Trap.cs index 640edb0..367fb56 100644 --- a/Assets/Scripts/Trap.cs +++ b/Assets/Scripts/Trap.cs @@ -151,8 +151,8 @@ public class Trap : MonoBehaviour if (robberInRange) { - Debug.Log("The robber set off the trap."); - isActivated = false; + Debug.Log("The robber set off the trap"); + isActivated = true; GetComponent().sharedMaterial = unsetMaterial; }