private void Update() { if (Input.GetKeyDown(KeyCode.E) && dialogTrigger && dialogTrigger.GetIsDialogOpen() && isReadyToPrintNextSentence) { Debug.Log("update dialogManager"); DisplayNextSentence(); isReadyToPrintNextSentence = false; } if (Input.GetKeyDown(KeyCode.Space)) { rushSentence = true; } }