Example #1
0
 private void Update()
 {
     if (canTalk && !dialogueInProgress && Input.GetKeyDown(KeyCode.E))
     {
         dialogueInProgress = true;
         manager.StartDialogue(dialogue);
     }
     else if (canTalk && dialogueInProgress && Input.GetKeyDown(KeyCode.E))
     {
         dialogueInProgress = false;
         manager.EndDialogue();
     }
 }