Add dialogue and interaction for demo

dev
Nadine Ganz 2024-11-19 21:45:47 +01:00
parent 675c57251d
commit 3107aceb63
17 changed files with 152800 additions and 131695 deletions

View File

@ -1,8 +1,28 @@
Tree("Root") {
Composite(Sequence) {
BTC.InitializeSpeechManager()
// BTC.Wait(30) oder Button Klick
//BTC.SetSpeechRecognitionLanguage("it-IT")
BTC.Wait(5)
BTC.SynthesizeText("Gib mir Bescheid, sobald du bereit bist.")
BTC.SpeechOutputEnded()
BTC.SetBool("startdialogue", false)
Composite(Race) {
Decorator(Repeat) {
Composite(Sequence) {
BTC.Wait(15)
// Race mit Sprache und Wait
BTC.SynthesizeText("Gib mir Bescheid, sobald du bereit bist.")
BTC.SpeechOutputEnded()
}
}
BTC.CompareBool("startdialogue", true)
}
BTC.SynthesizeText("Wir beide werden jetzt ein feines Risotto nach dem Rezept meiner Nonna kochen. Kochst du denn gerne?")
//BTC.SynthesizeText("Noi due adesso facciamo un buon risotto basato sulla ricetta di mia nonna. Ti piace cucinare?")
BTC.SpeechOutputEnded()
// Frage beantworten
@ -112,6 +132,7 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
// --- Kueche - Interesse Kochen ---
Composite(Sequence) {
BTC.SynthesizeText("Was kochst du denn manchmal so?")
//BTC.SynthesizeText("Cosa ti piace cucinare?")
BTC.SpeechOutputEnded()
// Frage beantworten
@ -155,6 +176,7 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
// --- Kueche - Kochen Anzahl ---
Composite(Sequence) {
BTC.SynthesizeText("Ja, das mag ich auch gerne. Wie oft kochst du denn so?")
//BTC.SynthesizeText("Sì, questo piace anche a me. Cucini spesso?")
BTC.SpeechOutputEnded()
// Frage beantworten
@ -198,7 +220,8 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
// --- Kueche - Desinteresse Kochen ---
Composite(Sequence) {
BTC.SynthesizeText("Oh okay, aber heute kochen wir gemeinsam und das Risotto ist auch nicht allzu schwer. Was ist denn dein Lieblingsgericht?")
BTC.SynthesizeText("Okay, aber heute kochen wir gemeinsam und das Risotto ist auch nicht allzu schwer. Was ist denn dein Lieblingsgericht?")
//BTC.SynthesizeText("Okay, ma oggi cuciniamo insieme. Fare un risotto non è complicato. Qual è il tuo piatto preferito?")
BTC.SpeechOutputEnded()
// Lieblingsgericht beantworten
@ -235,6 +258,7 @@ Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
}
BTC.SynthesizeText("Ja, das mag ich auch gerne.")
//BTC.SynthesizeText("Sì, questo piace anche a me.")
BTC.SpeechOutputEnded()
RunTree("32_Grotto_Kueche_Interaktion")
@ -243,12 +267,32 @@ Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
Tree("32_Grotto_Kueche_Interaktion") {
Composite(Sequence) {
BTC.SynthesizeText("Gut, dann fangen wir jetzt mit dem Risotto an. Schütte bitte die Zwiebeln und den Reis in den Topf.")
BTC.SynthesizeText("Gut, dann fangen wir jetzt mit dem Risotto an. Gebe bitte die Pilze in den Topf.")
//BTC.SynthesizeText("Bene, allora cominciamo con il risotto. Versa le cipolle e il riso nella pentola.")
BTC.SpeechOutputEnded()
BTC.GetKeyDown("Return")
BTC.Enable("NamedOutline.INTERACTABLES.Teller")
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze")
// Interaktion: Herd anmachen, Reis und Zwiebeln in Topf leeren
Composite(Marathon) {
Composite(Sequence) {
BTC.Run("NamedGrabEvent.INTERACTABLES.Pilz01")
BTC.Run("Collider.INTERACTABLES.Topf")
}
Composite(Sequence) {
BTC.Run("NamedGrabEvent.INTERACTABLES.Pilz02")
BTC.Run("Collider.INTERACTABLES.Topf")
}
Composite(Sequence) {
BTC.Run("NamedGrabEvent.INTERACTABLES.Pilz03")
BTC.Run("Collider.INTERACTABLES.Topf")
}
}
BTC.Disable("NamedOutline.INTERACTABLES.Teller")
BTC.Wait(300)
}
}

View File

@ -21,7 +21,7 @@ public class NamedOutline : ComponentHandler
public override string ContentLabel()
{
UpdateComponent();
return "";
return objName;
}
public override void UpdateComponent()
@ -60,4 +60,5 @@ public class NamedOutline : ComponentHandler
}
public Outline outlineComponent;
public string objName = "OutlineXY";
}

View File

@ -1,20 +1,30 @@
fileFormatVersion: 1
fileFormatVersion: 2
guid: 159cb3726937c6c498fa49eb627b0d96
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: ARM64
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 1
fileFormatVersion: 2
guid: e4d6c68823f34e440bfe4e4ecba4c113
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: ARM64
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 2
guid: f71c8f89be7646142baed6d482d5e89c
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: ARMv7
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 2
guid: cf01ad74bd6e5df46996c61b81ba590c
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: ARMv7
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 2
guid: 099e80baee62d0c439475fae45e69f4e
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: x86
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 2
guid: a20d361b085100b4997c4e5b0b83af31
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: x86
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 2
guid: 7b1a5b0e7617bcf49885fb2dd09d7085
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: x86_64
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1,20 +1,30 @@
fileFormatVersion: 2
guid: 8c078c4748d95c2489bb3b82aa144194
PluginImporter:
serializedVersion: 1
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Android:
- first:
Android: Android
second:
enabled: 1
settings:
CPU: x86_64
Any:
- first:
Any:
second:
enabled: 0
settings: {}
Editor:
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true

View File

@ -1 +1 @@
2024-11-08T15:52:32.2904800Z
2024-11-19T13:59:10.1955850Z

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3f0b8c9e9c318472293e169f2a5aa33b
guid: 73a9f252c3e0a43b5aefed4bb6a46444
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,61 @@
{
"intents": [
{
"intentID": "Kueche.alles_gefunden.4",
"intentSentences": [
"Sì.",
"Sì, mi piace cucinare.",
"Mi piace molto cucinare.",
"Cucino molto volentieri.",
"Adoro cucinare.",
"Amo cucinare."
]
},
{
"intentID": "Kueche.alles_gefunden.6",
"intentSentences": [
"No.",
"No, non mi piace cucinare.",
"Non mi piace niente cucinare.",
"Odio cucinare.",
"Non mi piace affatto cucinare."
]
},
{
"intentID": "Kueche.Interesse_Kochen.2",
"intentSentences": [
"Mi piace cucinare xy.",
"Preparo volentieri xy.",
"Mi piace preparare xy."
]
},
{
"intentID": "Kueche.Kochen_Anzahl.2",
"intentSentences": [
"Sì, spesso.",
"Molto spesso.",
"Quasi ogni giorno.",
"Tutti i giorni."
]
},
{
"intentID": "Kueche.Kochen_Anzahl.4",
"intentSentences": [
"No, mai.",
"Mai.",
"Quasi mai.",
"Raramente.",
"Solo il weekend.",
"Solo il fine settimana."
]
},
{
"intentID": "Kueche.Desinteresse_Kochen.2",
"intentSentences": [
"Mangio volentieri xy.",
"Mi piace xy.",
"Mi piace un sacco xy."
]
}
]
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5c4e3b2efb54540939c37b17ea287a2a
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: