private void Update() { //isBoxActive = dBox.IsBoxActive(); // print(isBoxActive); //if box is active and we press space, close //todo: fix the problem where pressing down spacebar doesn't make the dialouge appear if (isBoxActive && Input.GetKeyUp(KeyCode.A)) { dBox.HideDialougeBox(); isBoxActive = false; resetInteract.interacted = false; } }