852 lines
34 KiB
Plaintext
852 lines
34 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("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
|
|
|
|
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_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.5") // TODO: Update Speech Intent
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("40_Puschlav_Story_C_Puschlav_3A_Gletschergarten")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.5")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("40_Puschlav_Story_C_Puschlav_3A_Gletschergarten")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
RunTree("40_Puschlav_Story_C_Puschlav_3B_Alpgruem")
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.5")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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
|
|
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
BTC.Run("LoadScene.NEXT.10SBB")
|
|
}
|
|
}
|
|
|
|
Tree("40_Puschlav_Story_C_Puschlav_3A_Gletschergarten") {
|
|
Composite(Sequence) {
|
|
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_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 4, 5)
|
|
|
|
// Bild 5a
|
|
BTC.Wait(4)
|
|
BTC.Run("AudioSource.AUDIO.5a9003voice1")
|
|
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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) {
|
|
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_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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_B_Grotto.Intro.3")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
}
|
|
Composite(Sequence) {
|
|
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
|
|
BTC.ClearPossbileSpeechIntents()
|
|
// TODO: Jump point definieren
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
BTC.BlendImage("StereoSlideshow.XRInteractionHandsSetup.19099", 4, 5)
|
|
|
|
// Bild 5b
|
|
BTC.Wait(4)
|
|
BTC.Run("AudioSource.AUDIO.5b8511voice1")
|
|
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.3") // TODO: Update Speech Intent
|
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|