/// <summary> /// Reset values and exit the dialogue /// </summary> public void EndSpeech() { if (npcSpeech == null) { return; } npcSpeech.ResetSetNumber(); npcSpeech.currentLine = 0; player.GetComponent <PlayerMovementScript>().CanPlayerMove = true; npcInfo.InitPosition(); npcInfo.StopTalk(); npcSpeech = null; pInfo = null; npcInfo = null; speechOutline.gameObject.SetActive(false); choicePanel.gameObject.SetActive(false); speechPanel.gameObject.SetActive(false); StopCoroutine(typingCoroutine); speechText.text = ""; nameText.text = ""; textToDisplay = ""; inShop = false; inChoice = false; hasStartedTalking = false; hasFinishedTalking = false; }