요리 상호작용 조건문 추가

This commit is contained in:
NTG 2025-09-02 11:18:35 +09:00
parent f57e3851e1
commit 13a7ba388d

View File

@ -19,6 +19,9 @@ public bool ExecuteInteractionSubsystem(IInteractor interactor, IInteractable in
public bool CanExecuteInteractionSubsystem(IInteractor interactor = null, IInteractable interactable = null, ScriptableObject payload = null)
{
var isCarrying = interactor?.GetInteractorGameObject().GetComponent<ICarrier>().IsCarrying();
if (isCarrying == null || isCarrying == true) return false;
_cookwareType = CookwareType.None;
var iCookware = interactable?.GetInteractableGameObject().GetComponent<ICookware>();
if (iCookware == null) return false;