Beispiel #1
0
 virtual protected void StopInteracting()
 {
     if (playerCC != null)
     {
         playerCC.StopInteracting();
     }
     //NotInteracting?.Invoke();
 }
Beispiel #2
0
 private void Update()
 {
     if (receivedItem && Input.GetButtonDown("Submit"))
     {
         receivedItem = false;
         GetComponent <Animator>().SetBool("receiveItem", false);
         GetComponent <PlayerMovement>().enabled = true;
         context.StopInteracting();
         dialogueBox.SetActive(false);
     }
 }