diff --git a/Assets/Scripts/Trap.cs b/Assets/Scripts/Trap.cs index d229902..600cb39 100644 --- a/Assets/Scripts/Trap.cs +++ b/Assets/Scripts/Trap.cs @@ -151,8 +151,8 @@ public class Trap : MonoBehaviour if (robberInRange) { + isActivated = true; Debug.Log("The robber has set off the trap."); - isActivated = false; GetComponent().sharedMaterial = unsetMaterial; }