요리 상호작용 조건문 추가
This commit is contained in:
parent
f57e3851e1
commit
13a7ba388d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user