diff --git a/Assets/UI/DialogueBox/DialogueBox.cs b/Assets/UI/DialogueBox/DialogueBox.cs index b3983749583381b944185a23e72cc321be149915..ae23e655ac2de9271919c1bcb33487295556e1ee 100644 --- a/Assets/UI/DialogueBox/DialogueBox.cs +++ b/Assets/UI/DialogueBox/DialogueBox.cs @@ -39,8 +39,9 @@ public void OnEnable() { public void ClearUI() { SetActor(string.Empty); SetText(string.Empty); - for (var i = 0; i < buttons.Length; i++) - buttons[i].visible = false; + foreach (var button in buttons) { + button.visible = false; + } } public void SetActor(string actor) {