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