From 0716cbc0f7eb49630789959eac23c0a5037f7769 Mon Sep 17 00:00:00 2001 From: GanX <2423855310@qq.com> Date: Sat, 18 Oct 2025 11:42:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(Door):=20=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E5=BC=80=E5=85=B3=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E8=BF=90=E8=A1=8C=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Gameplay/Facility/DoorInteractController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();