noch mehr sprechen
This commit is contained in:
@ -41,11 +41,11 @@ public class DeveloperNeeds : MonoBehaviour
|
||||
{
|
||||
case "coffee":
|
||||
spawnedNeed = Instantiate(Needs[0], new Vector3(0.0f, 2f + (numNeeds * 0.5f), 0.0f), Needs[0].transform.rotation);
|
||||
context = "The Developer wants coffee";
|
||||
context = "The Developer wants Gottfried to bring him a coffee";
|
||||
break;
|
||||
case "mate":
|
||||
spawnedNeed = Instantiate(Needs[1], new Vector3(0.0f, 2f + (numNeeds * 0.5f), 0.0f), Needs[0].transform.rotation);
|
||||
context = "The Developer wants a Blub Mate (Yes, its a drink called Blub Mate)";
|
||||
context = "The Developer wants Gottfried to bring him a Blub Mate (Yes, its a drink called Blub Mate)";
|
||||
break;
|
||||
case "toilet":
|
||||
spawnedNeed = Instantiate(Needs[2], new Vector3(0.0f, 2f + (numNeeds * 0.5f), 0.0f), Needs[0].transform.rotation);
|
||||
@ -53,7 +53,11 @@ public class DeveloperNeeds : MonoBehaviour
|
||||
break;
|
||||
case "hunger":
|
||||
spawnedNeed = Instantiate(Needs[3], new Vector3(0.0f, 2f + (numNeeds * 0.5f), 0.0f), Needs[0].transform.rotation);
|
||||
context = "The Developer wants a pizza";
|
||||
context = "The Developer wants Gottfried to bring him a pizza";
|
||||
break;
|
||||
case "money":
|
||||
spawnedNeed = Instantiate(Needs[3], new Vector3(0.0f, 2f + (numNeeds * 0.5f), 0.0f), Needs[0].transform.rotation);
|
||||
context = "The Developer wants a raise, The Developer needs more money";
|
||||
break;
|
||||
default:
|
||||
Debug.LogError($"Unbekannter need \"{needName}\"");
|
||||
@ -66,7 +70,7 @@ public class DeveloperNeeds : MonoBehaviour
|
||||
spawnedNeed.transform.localScale = new Vector3(0.4f, 0.01f, 0.4f);
|
||||
if (!_audioSource.isPlaying)
|
||||
{
|
||||
_text2speech.Generate(context);
|
||||
_text2speech.Generate(context, 1);
|
||||
}
|
||||
return spawnedNeed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user