void Update() { if (Input.GetKeyDown(key) || (!string.IsNullOrEmpty(buttonName) && Input.GetButtonDown(buttonName))) { if (questLogWindow.IsOpen) { questLogWindow.Close(); } else { questLogWindow.Open(); } } }
void Update() { if (DialogueManager.IsDialogueSystemInputDisabled()) { return; } if (Input.GetKeyDown(key) || (!string.IsNullOrEmpty(buttonName) && DialogueManager.GetInputButtonDown(buttonName))) { if (questLogWindow.IsOpen) { questLogWindow.Close(); } else { questLogWindow.Open(); } } }