diff --git a/Assets/Script/Gameplay/Facility/DoorInteractController.cs b/Assets/Script/Gameplay/Facility/DoorInteractController.cs index e61153e..17b191d 100644 --- a/Assets/Script/Gameplay/Facility/DoorInteractController.cs +++ b/Assets/Script/Gameplay/Facility/DoorInteractController.cs @@ -7,7 +7,6 @@ namespace Script.Gameplay.Facility { public class DoorInteractController : InteractableBaseController, IEditableComponent { - [SerializeField] private LockLevel lockLevel; [SerializeField] private bool isActive = true; public bool IsActive { @@ -20,11 +19,12 @@ namespace Script.Gameplay.Facility } } public string ComponentName { get; set; } = "DoorSwitch"; - public LockLevel LockLevel => lockLevel; + public LockLevel LockLevel => LockLevel.Red; private bool isOpened = false; public override void Interact(GameObject interactor) { + if (!Interactable) return; if (isOpened) { CloseDoor();