diff --git a/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Actions/WaitForPlayerInteraction.cs b/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Actions/WaitForPlayerInteraction.cs index 8f2f3f801..6c5dd2230 100644 --- a/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Actions/WaitForPlayerInteraction.cs +++ b/Assets/_DDD/_Scripts/Restaurant/Character/AI/Customer/Actions/WaitForPlayerInteraction.cs @@ -18,17 +18,8 @@ public override void OnStart() { // 의자가 복합 상태를 가지게 될 경우 GameObject interactionTarget = null; - var shared = gameObject.GetComponentInChildren(); - if (shared != null) - { - interactionTarget = shared.GetCurrentInteractionTarget(); - } - else - { - // 하위 호환: 고객 전용 블랙보드 지원 - var customerBb = gameObject.GetComponentInParent(); - interactionTarget = customerBb?.GetCurrentInteractionTarget(); - } + if(!gameObject.TryGetComponent(out var sharedBlackboard)) return; + interactionTarget = sharedBlackboard.GetBlackboardGameObject(nameof(RestaurantCustomerBlackboardKey.CurrentInteractionTarget)); if (interactionTarget == null) {