802 lines
30 KiB
Plaintext
802 lines
30 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("22_Geschaeft_Story_A_Picknicken_Baeckerei_Intro")
|
|
//RunTree("22_Geschaeft_Story_A_Picknicken_Mitnehmen")
|
|
//RunTree("22_Geschaeft_Story_A_Picknicken_Dank_Einkauf")
|
|
//RunTree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Outro")
|
|
}
|
|
}
|
|
|
|
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("22_Geschaeft_Story_A_Picknicken_Baeckerei_Intro") {
|
|
Composite(Sequence) {
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_01")
|
|
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroF2")
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroFidl_03")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_01")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroV4")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_06")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroFidl_03")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroF5")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroFidl_07")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_06")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroV8")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_09")
|
|
BTC.AddPossbileSpeechIntent("Zugabteil-Exposition-U-2") // TODO: Update Intent ID
|
|
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.BaeckereiIntroVidl_09")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroV10")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_11")
|
|
BTC.AddPossbileSpeechIntent("Zugabteil-Exposition-U-2") // TODO: Update Intent ID
|
|
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.BaeckereiIntroVidl_11")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroV12")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_13")
|
|
BTC.AddPossbileSpeechIntent("Zugabteil-Exposition-U-2") // TODO: Update Intent ID
|
|
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.BaeckereiIntroVidl_13")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroV14")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_15")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroFidl_07")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroFidl_16")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Intro.3") // TODO: Update Intent ID
|
|
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()
|
|
}
|
|
}
|
|
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Mitnehmen")
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
|
|
// --- Story A Picknicken - Nachfrage Bestellung ---
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroFidl_16")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_15")
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBestellun_FIdle01")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBestellun_V3")
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBestellun_VIdle4")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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()
|
|
}
|
|
}
|
|
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Mitnehmen")
|
|
}
|
|
|
|
// -- Race 2: User sagt nichts
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.CompareUserSpeechInputStarted(false)
|
|
BTC.AbortSpeechEventListener()
|
|
BTC.StopSpeechIntentRecognition()
|
|
BTC.ClearPossbileSpeechIntents()
|
|
|
|
// --- Story A Picknicken - Bestellung Begleiter Beide ---
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBestellun_VIdle4")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBestellun_FIdle01")
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideV5")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_06")
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideF3")
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_06")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle4")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideV6")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle10")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle4")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideF11")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle10")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle12")
|
|
}
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideV13")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle12")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle14")
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideF15")
|
|
|
|
Composite(Sequence) {
|
|
BTC.Wait(2)
|
|
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
}
|
|
}
|
|
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Outro")
|
|
}
|
|
}
|
|
} // erste Race user sagt nichts
|
|
} // erste grosse race
|
|
}
|
|
}
|
|
|
|
Tree("22_Geschaeft_Story_A_Picknicken_Mitnehmen") {
|
|
// --- Story A Picknicken - Mitnehmen ---
|
|
Composite(Sequence) {
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBestellun_VIdle4")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBestellun_FIdle01")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_15")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroFidl_16")
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroFidl_16")
|
|
BTC.Run("MediaPlayer.VIDEOS.MitnehmenV1")
|
|
|
|
// --- Story A Picknicken - Bezahlen einzeln ---
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroFidl_16")
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnFid_01")
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnV2")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnVid_03")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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.BezahleneinzelnVid_03")
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnV4")
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnVid_05")
|
|
|
|
// Bezahlung mit Handy User
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.Set("Collider.STATIC.Kartenlesegeraet", "otherTag", "Smartphone")
|
|
BTC.Run("Collider.STATIC.Kartenlesegeraet")
|
|
BTC.SetBool("UserPayed")
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.SetBool("UserPayed", false)
|
|
}
|
|
}
|
|
|
|
// Check if user payed
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("UserPayed")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BezahleneinzelnVid_05")
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnV6")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnVid_07")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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()
|
|
}
|
|
}
|
|
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Dank_Einkauf")
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
// --- Story A Picknicken - Nachfrage Bezahlung ---
|
|
BTC.CompareBool("UserPayed", false)
|
|
BTC.Hide("MediaPlayer.VIDEOS.BezahleneinzelnFid_01")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_FIdle01")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BezahleneinzelnVid_05")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_V2")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_VIdle03")
|
|
|
|
// Bezahlung Handy User
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.Set("Collider.STATIC.Kartenlesegeraet", "otherTag", "Smartphone")
|
|
BTC.Run("Collider.STATIC.Kartenlesegeraet")
|
|
BTC.SetBool("UserPayed2")
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
BTC.Wait(5)
|
|
BTC.SetBool("UserPayed2", false)
|
|
}
|
|
} // Race
|
|
|
|
Composite(Race) {
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("UserPayed2")
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Dank_Einkauf")
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
BTC.CompareBool("UserPayed2", false)
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBezahlung_FIdle01")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBezahlung_VIdle03")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle10")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_F4")
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_F6")
|
|
}
|
|
}
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Dank_Einkauf")
|
|
} // Sequence User not payed
|
|
} // Race Check User payed first time
|
|
}
|
|
}
|
|
|
|
Tree("22_Geschaeft_Story_A_Picknicken_Dank_Einkauf") {
|
|
// --- Story A Picknicken - Dank Einkauf ---
|
|
Composite(Sequence) {
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BezahleneinzelnVid_07")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BezahleneinzelnFid_01")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBezahlung_FIdle01")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBezahlung_VIdle03")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle10")
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_FIdle01")
|
|
BTC.Run("MediaPlayer.VIDEOS.DankEinkaufV2")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.DankEinkaufVidle3")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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()
|
|
}
|
|
}
|
|
|
|
// --- Story A Picknicken - Bestellung Begleiter ---
|
|
BTC.Hide("MediaPlayer.VIDEOS.DankEinkaufVidle3")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_VIdle1")
|
|
BTC.Hide("MediaPlayer.VIDEOS.NachfrageBezahlung_FIdle01")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_F2")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_FIdle3")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_VIdle1")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_V4")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_VIdle5")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_FIdle3")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_F6")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_FIdle7")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_VIdle5")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_V8")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_VIdle9")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_FIdle7")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_F10")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_FIdle11")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_VIdle9")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_V12")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_VIdle13")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_FIdle11")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.NachfrageBezahlung_F6") // Ersatz F14
|
|
|
|
Composite(Sequence) {
|
|
BTC.Wait(3)
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_VIdle13")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_V16")
|
|
BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_VIdle17")
|
|
}
|
|
}
|
|
|
|
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
RunTree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Outro")
|
|
}
|
|
}
|
|
|
|
Tree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Outro") {
|
|
// --- Story A Picknicken - Baeckerei Outro ---
|
|
Composite(Sequence) {
|
|
Composite(Marathon) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle14")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_VIdle17")
|
|
// Init Position User
|
|
BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -0.718, 0, -0.28)
|
|
BTC.SetPosition("GO.HANDMENU", -0.85, 0, -0.28)
|
|
BTC.RotateToAngle("GO.XRInteractionHandsSetup.XROrigin", -90.0)
|
|
BTC.RotateToAngle("GO.HANDMENU", -90.0)
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_01")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_03")
|
|
BTC.Show("Animator.AnimatorBaeckereiT")
|
|
|
|
Composite(Marathon) {
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE1")
|
|
|
|
Composite(Sequence) {
|
|
BTC.Wait(3)
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_03")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF4")
|
|
}
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
BTC.Wait(1)
|
|
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
|
|
}
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_04")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE5")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE6")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroEidl_07")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_04")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF8")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_09")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroEidl_07")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE10")
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroEidl_11")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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.BaeckereiOutroEidl_11")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE12")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroEidl_13")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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.BaeckereiOutroEidl_13")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE14")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroEidl_15")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_09")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF16")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_17")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroEidl_15")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE18")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroEidl_19")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_17")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF20")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_21")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroEidl_19")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE22")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroEidl_23")
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_21")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF24")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_25")
|
|
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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.BaeckereiOutroEidl_23")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE26")
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_25")
|
|
|
|
Composite(Marathon) {
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroE27")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF28")
|
|
}
|
|
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_29")
|
|
BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2") // TODO: Update IntentID
|
|
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()
|
|
}
|
|
}
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_29")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF30")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroFidl_31")
|
|
}
|
|
|
|
Composite(Sequence) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_01")
|
|
BTC.Wait(1)
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroV32")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroVidl_33")
|
|
}
|
|
}
|
|
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroFidl_31")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroF34")
|
|
|
|
Composite(Marathon) {
|
|
Composite(Sequence) {
|
|
BTC.Hide("MediaPlayer.VIDEOS.BaeckereiOutroVidl_33")
|
|
BTC.Run("MediaPlayer.VIDEOS.BaeckereiOutroV35")
|
|
}
|
|
|
|
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
}
|
|
|
|
BTC.Run("LoadScene.NEXT.26Castello")
|
|
}
|
|
} |