852 lines
35 KiB
Plaintext
852 lines
35 KiB
Plaintext
Tree("Root") {
|
|
Composite(Sequence) {
|
|
BTC.InitializeSpeechManager()
|
|
BTC.SetSpeechRecognitionLanguage("it-IT")
|
|
BTC.SetVoiceName("it-IT-FabiolaNeural")
|
|
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
// Error in Speech Service: Cancel BTC Trees
|
|
BTC.SpeechErrorOccured()
|
|
BTC.SetBool("error")
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
|
|
}
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("error")
|
|
// Error Handling
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
|
|
BTC.Show("GO.GO.SpeechButton")
|
|
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Restart")
|
|
BTC.Show("GO.GO.Option1Button")
|
|
BTC.Run("NamedEventTrigger.GO.Option1Button")
|
|
BTC.Hide("GO.GO.Option1Button")
|
|
BTC.Hide("GO.GO.SpeechButton")
|
|
BTC.Hide("GO.GO.SpeechOptions")
|
|
}
|
|
}
|
|
}
|
|
|
|
Tree("32_Grotto_Im_Grotto_Essen_Intro") {
|
|
// --- Im Grotto Essen - Intro ---
|
|
Composite(Sequence) {
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroFidle1")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("StudioEventEmitter.STATIC.KuechenAmbi")
|
|
BTC.Run("StudioEventEmitter.STATIC.AmbiGarten")
|
|
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
|
|
}
|
|
|
|
BTC.Wait(3)
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle1")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroF2")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroFidle3")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Intro-U-3a")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle3")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroF4")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroFidle5")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Intro-U-5a")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Intro-U-7b")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
|
|
// Intent erkannt
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Intro-U-5a")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroF6")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Intro-U-7b")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroF8")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroF8")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroF8")
|
|
}
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.IntroFidle7")
|
|
|
|
// --- Im Grotto Essen - Bestellung Getraenk ---
|
|
BTC.Wait(3)
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Wait(2)
|
|
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle7")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle2")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G3")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle4")
|
|
}
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle2")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_F5")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle6")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle4")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G7")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle8")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle6")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_F9")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle10")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle8")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G11")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle10")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-13")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-14")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-16")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
|
|
// Intent erkannt
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-13")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G14")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-14")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G15")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-16")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G17")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk")
|
|
}
|
|
}
|
|
|
|
// --- Im Grotto Essen - Bestellung Essen ---
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungEssenG2")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungEssenGid_3")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-3")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4a")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4b")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
|
|
// Intent erkannt
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.SetBool("ChoosedInsalata")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4a")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.SetBool("ChoosedPizochen")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4b")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.SetBool("ChoosedRisotto")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen")
|
|
}
|
|
}
|
|
|
|
// --- Im Grotto Essen - Grotto Unterhaltung ---
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G2")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle3")
|
|
BTC.Wait(10)
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle3")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F4")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle5")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-5a")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-5b")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F6")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle6")
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G7")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle8")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.Wait(25)
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle6")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle9")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
// Getraenke anzeigen
|
|
BTC.Show("GO.INTERACTABLES.GazosaMandarina")
|
|
BTC.Show("GO.INTERACTABLES.Tazzin")
|
|
BTC.Show("GO.INTERACTABLES.Gazosa")
|
|
}
|
|
}
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-9a")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-9b")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle8")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G10")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle9")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F11")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-12a")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-12b")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F13")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle16")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G15")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.Wait(5.8)
|
|
Composite(Marathon) {
|
|
BTC.Show("GO.INTERACTABLES.PizochenFrancesca")
|
|
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("ChoosedPizochen")
|
|
BTC.Show("GO.INTERACTABLES.PizochenUser")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("ChoosedInsalata")
|
|
BTC.Show("GO.INTERACTABLES.InsalataUser")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("ChoosedRisotto")
|
|
BTC.Show("GO.INTERACTABLES.RisottoUser")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G17")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle18")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle16")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F19")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle18")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-21")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-24")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-27")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
|
|
|
|
// Intent erkannt
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Grotto_Unterhaltung-U-21")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G22")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Grotto_Unterhaltung-U-24")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G25")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Grotto_Unterhaltung-U-27")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G28")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G28")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G28")
|
|
}
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F30")
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G26")
|
|
}
|
|
}
|
|
|
|
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
|
|
// --- Im Grotto Essen - Outro ---
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroFidle1")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroGidle3")
|
|
|
|
Composite(Marathon) {
|
|
BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -1.02, 0, -3.019)
|
|
BTC.SetPosition("GO.HANDMENU", -1.02, 0, -3.019)
|
|
BTC.RotateToAngle("GO.XRInteractionHandsSetup.XROrigin", 180.0)
|
|
BTC.RotateToAngle("GO.HANDMENU", 180.0)
|
|
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.OutroGidle3")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroG2")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroGidle3")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroF4")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroFidle5")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Outro-U-5a")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroF6")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroFidle7")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.OutroGidle3")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroG8")
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroGidle9")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle7")
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Wait(6)
|
|
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.OutroF10")
|
|
}
|
|
|
|
// Go to scene 1.0 SBB
|
|
BTC.SetStoryBVisited()
|
|
BTC.Run("LoadScene.NEXT.10SBB")
|
|
}
|
|
}
|
|
|
|
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
|
|
Composite(Sequence) {
|
|
// --- Im Grotto Essen - Nachfrage Kellner Getraenk ---
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_G1")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-13")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-14")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-16")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
|
|
// Intent erkannt
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-13")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G14")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-14")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G15")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-16")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G17")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") {
|
|
Composite(Sequence) {
|
|
// Fallback Button
|
|
Composite(Marathon) {
|
|
BTC.Show("GO.GO.SpeechButton")
|
|
BTC.Set("TextMeshPro.GO.Option1Button", "text", "una gazzosa")
|
|
BTC.Show("GO.GO.Option1Button")
|
|
}
|
|
|
|
BTC.Run("NamedEventTrigger.GO.Option1Button")
|
|
BTC.Hide("GO.GO.Option1Button")
|
|
BTC.Hide("GO.GO.SpeechButton")
|
|
BTC.Hide("GO.GO.SpeechOptions")
|
|
}
|
|
}
|
|
|
|
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen") {
|
|
Composite(Sequence) {
|
|
// --- Im Grotto Essen - Nachfrage Kellner Essen ---
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerEs_G2")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
|
|
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-3")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4a")
|
|
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4b")
|
|
BTC.StartSpeechIntentRecognition()
|
|
|
|
Composite(Race) {
|
|
// -- Race 1: User sagt etwas
|
|
Composite(Sequence) {
|
|
BTC.UserStartedSpeechInput()
|
|
|
|
Composite(Selector) {
|
|
// -- Selector 1: Intent erkannt
|
|
Composite(Sequence) {
|
|
BTC.SpeechIntentRecognized()
|
|
|
|
// Intent erkannt
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.SetBool("ChoosedInsalata")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4a")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.SetBool("ChoosedPizochen")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4b")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
BTC.SetBool("ChoosedRisotto")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Selector 2: Intent nicht erkannt
|
|
Composite(Sequence) {
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
|
|
}
|
|
}
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu") {
|
|
Composite(Sequence) {
|
|
// Fallback Button
|
|
Composite(Marathon) {
|
|
BTC.Show("GO.GO.SpeechButton")
|
|
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto")
|
|
BTC.Show("GO.GO.Option1Button")
|
|
BTC.Set("TextMeshPro.GO.Option2Button", "text", "Pizochen")
|
|
BTC.Show("GO.GO.Option2Button")
|
|
BTC.Set("TextMeshPro.GO.Option3Button", "text", "Insalata")
|
|
BTC.Show("GO.GO.Option3Button")
|
|
}
|
|
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
// Risotto
|
|
BTC.Run("NamedEventTrigger.GO.Option1Button")
|
|
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
|
|
BTC.AbortEventListener("NamedEventTrigger.GO.Option3Button")
|
|
BTC.Hide("GO.GO.Option1Button")
|
|
BTC.Hide("GO.GO.Option2Button")
|
|
BTC.Hide("GO.GO.Option3Button")
|
|
BTC.Hide("GO.GO.SpeechButton")
|
|
BTC.Hide("GO.GO.SpeechOptions")
|
|
BTC.SetBool("ChoosedRisotto")
|
|
}
|
|
Composite(Sequence) {
|
|
// Pizochen
|
|
BTC.Run("NamedEventTrigger.GO.Option2Button")
|
|
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
|
|
BTC.AbortEventListener("NamedEventTrigger.GO.Option3Button")
|
|
BTC.Hide("GO.GO.Option1Button")
|
|
BTC.Hide("GO.GO.Option2Button")
|
|
BTC.Hide("GO.GO.Option3Button")
|
|
BTC.Hide("GO.GO.SpeechButton")
|
|
BTC.Hide("GO.GO.SpeechOptions")
|
|
BTC.SetBool("ChoosedPizochen")
|
|
}
|
|
Composite(Sequence) {
|
|
// Insalata
|
|
BTC.Run("NamedEventTrigger.GO.Option3Button")
|
|
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
|
|
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
|
|
BTC.Hide("GO.GO.Option1Button")
|
|
BTC.Hide("GO.GO.Option2Button")
|
|
BTC.Hide("GO.GO.Option3Button")
|
|
BTC.Hide("GO.GO.SpeechButton")
|
|
BTC.Hide("GO.GO.SpeechOptions")
|
|
BTC.SetBool("ChoosedInsalata")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|