From 3206317963f4349ddbd9d8d15298c065ef52afb7 Mon Sep 17 00:00:00 2001 From: Geri Date: Sat, 27 Jan 2024 20:36:24 +0100 Subject: [PATCH] fix: Joke answers are now shown correctly --- Assets/Scripts/Messaging/Typer/MessageManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Messaging/Typer/MessageManager.cs b/Assets/Scripts/Messaging/Typer/MessageManager.cs index 4a10001..4b887bc 100644 --- a/Assets/Scripts/Messaging/Typer/MessageManager.cs +++ b/Assets/Scripts/Messaging/Typer/MessageManager.cs @@ -36,8 +36,9 @@ namespace Messaging { } private async void SendRandomJoke(float delay) { - _currentJoke = GetRandomJoke(); + //TODO: Lock send button here await Task.Delay((int)(delay * 1000)); + _currentJoke = GetRandomJoke(); CreateMessage(_currentJoke.QuestionMessage.Key, false); }