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("40_Puschlav_Story_C_Puschlav") } } Composite(Sequence) { BTC.CompareBool("error") // Error Handling BTC.AbortSpeechEventListener() BTC.StopSpeechIntentRecognition() BTC.ClearPossbileSpeechIntents() BTC.Show("GO.HANDMENU.SpeechButton") BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Restart") BTC.Show("GO.HANDMENU.Option1Button") BTC.Run("NamedEventTrigger.HANDMENU.Option1Button") BTC.Hide("GO.HANDMENU.Option1Button") BTC.Hide("GO.HANDMENU.SpeechButton") BTC.Hide("GO.HANDMENU.SpeechOptions") } } } Tree("40_Puschlav_Story_C_Puschlav") { Composite(Sequence) { BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black") Composite(Marathon) { // 1. Foto BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 0) BTC.Run("AudioSource.AUDIO.0ingamevrintro") } // Start Slideshow Composite(Marathon) { BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav1") BTC.Show("StereoSlideshow.XRInteractionHandsSetup.19099") } Composite(Marathon) { BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 1) Composite(Sequence) { BTC.Wait(2) BTC.Run("AudioSource.AUDIO.19099voice1") } } BTC.AddPossbileSpeechIntent("Story_C_Puschlav-1-9099_bahnhof-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-1-9099_bahnhof-U-2") 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("Story_C_Puschlav-1-9099_bahnhof-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-1-9099_bahnhof-U-2") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav1") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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.Run("AudioSource.AUDIO.19099voice2") 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("Story_C_Puschlav-1-9099_bahnhof-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-1-9099_bahnhof-U-2") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav1") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav1") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav2") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 0, 1) } Composite(Marathon) { Composite(Sequence) { BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 2) BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 3) } Composite(Sequence) { BTC.Wait(4) BTC.Run("AudioSource.AUDIO.29119voice1") } } BTC.AddPossbileSpeechIntent("Story_C_Puschlav-2-9119_schild-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-2-9119_schild-U-1b") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-2-9119_schild-U-2c") 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("Story_C_Puschlav-2-9119_schild-U-1a") BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3A_Gletschergarten") } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-2-9119_schild-U-1b") BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem") } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-2-9119_schild-U-2c") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav2") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- Selector 2: Intent nicht erkannt Composite(Sequence) { BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem") } } } // -- Race 2: User sagt nichts Composite(Sequence) { BTC.Wait(5) BTC.CompareUserSpeechInputStarted(false) BTC.AbortSpeechEventListener() BTC.StopSpeechIntentRecognition() BTC.Run("AudioSource.AUDIO.29119voice2") 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("Story_C_Puschlav-2-9119_schild-U-1a") BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3A_Gletschergarten") } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-2-9119_schild-U-1b") BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem") } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-2-9119_schild-U-2c") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav2") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- Selector 2: Intent nicht erkannt Composite(Sequence) { BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem") } } } // -- Race 2: User sagt nichts Composite(Sequence) { BTC.Wait(5) BTC.CompareUserSpeechInputStarted(false) BTC.AbortSpeechEventListener() BTC.StopSpeechIntentRecognition() BTC.ClearPossbileSpeechIntents() RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem") } } } } // Ende // ToDo: Jump Point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav5a") BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav5b") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } Tree("40_Puschlav_Story_C_Puschlav_3A_Gletschergarten") { Composite(Sequence) { Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav2") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3a") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 1, 2) } // Bild 3a Composite(Marathon) { BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 4) Composite(Sequence) { BTC.Wait(4) BTC.Run("AudioSource.AUDIO.3a8927voice1") } } BTC.AddPossbileSpeechIntent("Story_C_Puschlav-3a-8927_trichter1-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-3a-8927_trichter1-U-2c") 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("Story_C_Puschlav-3a-8927_trichter1-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-3a-8927_trichter1-U-2c") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3a") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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.Run("AudioSource.AUDIO.3a8927voice2") 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("Story_C_Puschlav-3a-8927_trichter1-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-3a-8927_trichter1-U-2c") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3a") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3a") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4a") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 2, 4) } // Bild 4a Composite(Marathon) { BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 6) Composite(Sequence) { BTC.Wait(4) BTC.Run("AudioSource.AUDIO.4a8975voice1") } } BTC.AddPossbileSpeechIntent("Story_C_Puschlav-4a-8975_trichter2-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-4a-8975_trichter2-U-2c") 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("Story_C_Puschlav-4a-8975_trichter2-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-4a-8975_trichter2-U-2c") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4a") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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.Run("AudioSource.AUDIO.4a8975voice2") 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("Story_C_Puschlav-4a-8975_trichter2-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-4a-8975_trichter2-U-2c") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4a") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4a") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav5a") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 4, 5) } // Bild 5a BTC.Wait(4) BTC.Run("AudioSource.AUDIO.5a9003voice1") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-5a-9003_valposchiavo-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-5a-9003_valposchiavo-U-2") 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 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.Run("AudioSource.AUDIO.5a9003voice2") 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 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() } } } } } } Tree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem") { Composite(Sequence) { Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav2") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3b") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 1, 3) } // Bild 3b Composite(Marathon) { BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 5) Composite(Sequence) { BTC.Wait(4) BTC.Run("AudioSource.AUDIO.3b8595voice1") } } BTC.AddPossbileSpeechIntent("Story_C_Puschlav-3b-8595_alpenrosen-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-3b-8595_alpenrosen-U-2") 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("Story_C_Puschlav-3b-8595_alpenrosen-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-3b-8595_alpenrosen-U-2") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3b") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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.Run("AudioSource.AUDIO.3b8595voice2") 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("Story_C_Puschlav-3b-8595_alpenrosen-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-3b-8595_alpenrosen-U-2") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3b") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav3b") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4b") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 3, 4) } // Bild 4b Composite(Marathon) { BTC.LoadImage("StereoSlideshow.XRInteractionHandsSetup.19099", 7) Composite(Sequence) { BTC.Wait(4) BTC.Run("AudioSource.AUDIO.4b8623voice1") } } BTC.AddPossbileSpeechIntent("Story_C_Puschlav-4b-8623_schafe-U-1a") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-4b-8623_schafe-U-2") 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("Story_C_Puschlav-4b-8623_schafe-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-4b-8623_schafe-U-2") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4b") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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.Run("AudioSource.AUDIO.4b8623voice2") 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("Story_C_Puschlav-4b-8623_schafe-U-1a") BTC.ClearPossbileSpeechIntents() } Composite(Sequence) { BTC.CompareIntentID("Story_C_Puschlav-4b-8623_schafe-U-2") BTC.ClearPossbileSpeechIntents() // TODO: Jump point definieren Composite(Marathon) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4b") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") } BTC.Run("LoadScene.NEXT.10SBB") } } } // -- 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) { BTC.StopSound("StudioEventEmitter.XRInteractionHandsSetup.Puschlav4b") BTC.Run("StudioEventEmitter.XRInteractionHandsSetup.Puschlav5b") BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 4, 5) } // Bild 5b BTC.Wait(4) BTC.Run("AudioSource.AUDIO.5b8511voice1") BTC.AddPossbileSpeechIntent("Story_C_Puschlav-5b-8511_alp_gruem-U-1a") 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 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.Run("AudioSource.AUDIO.5b8511voice2") 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 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() } } } } } }