Esempio n. 1
0
        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);
     }
 }
Esempio n. 5
0
 public void Interacted(IInteractor interactor, string action)
 {
     interactor.Interact(this);
 }
Esempio n. 6
0
 protected override void PerformAction(IInteractor interactor)
 {
     interactor.Interact(itemType);
     base.PerformAction(interactor);
 }
Esempio n. 7
0
 protected override void PerformAction(IInteractor interactor)
 {
     interactor.Interact(this);
 }