Example #1
0
 void Update()
 {
     if (Input.GetKeyDown(key) || (!string.IsNullOrEmpty(buttonName) && Input.GetButtonDown(buttonName)))
     {
         if (questLogWindow.IsOpen)
         {
             questLogWindow.Close();
         }
         else
         {
             questLogWindow.Open();
         }
     }
 }
Example #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();
         }
     }
 }