void Update() { if (PlayerCursor.targetObject == me && Input.GetKeyUp(KeyCode.E)) { TriggerDialogue(); } if (DialogueHandler.isTalking == true && Input.GetKeyUp(KeyCode.Space)) { DialogueHandler.DisplayNextSentence(); } if (DialogueHandler.isTalking == true && Input.GetKeyUp(KeyCode.Escape)) { DialogueHandler.EndDialogue(); } }