Zombies machen jetzt Geräusche wenn sie durch Disable sterben

This commit is contained in:
2024-04-07 01:22:42 +02:00
parent 3bdf7231e3
commit 993b38c057
18 changed files with 14581 additions and 15 deletions

View File

@ -166,7 +166,7 @@ public class Text2Speech : MonoBehaviour
IEnumerator GenerateAndSynthesizeText(string context)
{
var generateTextTask = GenerateText(context);
var generateTextTask = GenerateTextAsync(context);
yield return new WaitUntil(() => generateTextTask.IsCompleted);
@ -181,7 +181,7 @@ public class Text2Speech : MonoBehaviour
}
}
async Task<string> GenerateText(string context)
async Task<string> GenerateTextAsync(string context)
{
Model model = Model.ChatGPTTurbo;