diff --git a/Assets/Scripts/Managers/DialogueManager.cs b/Assets/Scripts/Managers/DialogueManager.cs index 7a7f97583e28867c940346ea0267a783fad7bc68..564b5e54dd155e47309b1b25e94a55bd194e0f63 100644 --- a/Assets/Scripts/Managers/DialogueManager.cs +++ b/Assets/Scripts/Managers/DialogueManager.cs @@ -16,6 +16,7 @@ public class DialogueManager : MonoBehaviour // Start is called before the first frame update void Start() { + Time.timeScale = 0; textComponent.text = string.Empty; talkerComponent.text = string.Empty; StartDialogue(); @@ -51,7 +52,7 @@ public class DialogueManager : MonoBehaviour foreach (char c in lines[index].ToCharArray()) { textComponent.text += c; - yield return new WaitForSeconds(textSpeed); + yield return new WaitForSecondsRealtime(textSpeed); } } @@ -67,6 +68,7 @@ public class DialogueManager : MonoBehaviour else { gameObject.SetActive(false); + Time.timeScale = 1; } } } \ No newline at end of file