public static bool GetResponse(IInteractor interactor, string str) { var res = interactor.Interact(str); Console.WriteLine(res.Massage); return(res.IsSuccessfulOperation); }
public void Interact() { if (interactor.CanInteract()) { interactor.Interact(); GetComponentInParent <PlayerInput>().SetPlayerState(PlayerInput.PlayerState.Interacting); } }
public void InteractWithObject() { if (interactionType != null) { interactionType.Interact(); } contextMenu.SetActive(false); }
public void Interacted(IInteractor interactor, string action) { if (IsLocked) { PlayDialogueResponse(); } else { Open(); interactor.Interact(this); } }
public void Interacted(IInteractor interactor, string action) { interactor.Interact(this); }
protected override void PerformAction(IInteractor interactor) { interactor.Interact(itemType); base.PerformAction(interactor); }
protected override void PerformAction(IInteractor interactor) { interactor.Interact(this); }