Ejemplo n.º 1
0
 /// <summary>
 /// Closes the dialogue box, whilst renabling player movement
 /// Will also call <see cref="ObjectInteraction.endOfDialogue"/> afterwards to add an item or start a battle as appropiate
 /// </summary>
 private void setInactive()
 {
     dialogueBox.SetActive(false);
     if (movementScript == null)
     {
         movementScript = FindObjectOfType <PlayerMovement> ();
     }
     movementScript.setCanMove(true);
     dialogueActive = false;
     if (caller != null)
     {
         caller.endOfDialogue();
     }
 }