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") { Tree("Root") {
Composite(Sequence) { Composite(Sequence) {
BTC.InitializeSpeechManager() 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("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() BTC.SpeechOutputEnded()
// Frage beantworten // Frage beantworten
@ -112,6 +132,7 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
// --- Kueche - Interesse Kochen --- // --- Kueche - Interesse Kochen ---
Composite(Sequence) { Composite(Sequence) {
BTC.SynthesizeText("Was kochst du denn manchmal so?") BTC.SynthesizeText("Was kochst du denn manchmal so?")
//BTC.SynthesizeText("Cosa ti piace cucinare?")
BTC.SpeechOutputEnded() BTC.SpeechOutputEnded()
// Frage beantworten // Frage beantworten
@ -155,6 +176,7 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
// --- Kueche - Kochen Anzahl --- // --- Kueche - Kochen Anzahl ---
Composite(Sequence) { Composite(Sequence) {
BTC.SynthesizeText("Ja, das mag ich auch gerne. Wie oft kochst du denn so?") 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() BTC.SpeechOutputEnded()
// Frage beantworten // Frage beantworten
@ -198,7 +220,8 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
Tree("32_Grotto_Kueche_Desinteresse_Kochen") { Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
// --- Kueche - Desinteresse Kochen --- // --- Kueche - Desinteresse Kochen ---
Composite(Sequence) { 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() BTC.SpeechOutputEnded()
// Lieblingsgericht beantworten // Lieblingsgericht beantworten
@ -235,6 +258,7 @@ Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
} }
BTC.SynthesizeText("Ja, das mag ich auch gerne.") BTC.SynthesizeText("Ja, das mag ich auch gerne.")
//BTC.SynthesizeText("Sì, questo piace anche a me.")
BTC.SpeechOutputEnded() BTC.SpeechOutputEnded()
RunTree("32_Grotto_Kueche_Interaktion") RunTree("32_Grotto_Kueche_Interaktion")
@ -243,12 +267,32 @@ Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
Tree("32_Grotto_Kueche_Interaktion") { Tree("32_Grotto_Kueche_Interaktion") {
Composite(Sequence) { 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.SpeechOutputEnded()
BTC.GetKeyDown("Return") BTC.Enable("NamedOutline.INTERACTABLES.Teller")
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze")
Composite(Marathon) {
Composite(Sequence) {
BTC.Run("NamedGrabEvent.INTERACTABLES.Pilz01")
BTC.Run("Collider.INTERACTABLES.Topf")
}
// Interaktion: Herd anmachen, Reis und Zwiebeln in Topf leeren 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() public override string ContentLabel()
{ {
UpdateComponent(); UpdateComponent();
return ""; return objName;
} }
public override void UpdateComponent() public override void UpdateComponent()
@ -60,4 +60,5 @@ public class NamedOutline : ComponentHandler
} }
public Outline outlineComponent; public Outline outlineComponent;
public string objName = "OutlineXY";
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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 fileFormatVersion: 2
guid: 3f0b8c9e9c318472293e169f2a5aa33b guid: 73a9f252c3e0a43b5aefed4bb6a46444
TextScriptImporter: TextScriptImporter:
externalObjects: {} externalObjects: {}
userData: 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: