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