Merge branch 'programming'
This commit is contained in:
		
						commit
						9b37cd9ca1
					
				@ -1,18 +1,89 @@
 | 
			
		||||
Tree("Root") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
        BTC.InitializeSpeechManager()   // TODO: in Endversion loeschen
 | 
			
		||||
        BTC.InitializeSpeechManager()
 | 
			
		||||
        BTC.SetSpeechRecognitionLanguage("it-IT")
 | 
			
		||||
        BTC.SetVoiceName("it-IT-FabiolaNeural")
 | 
			
		||||
        BTC.SetVoiceName("it-IT-IsabellaMultilingualNeural")
 | 
			
		||||
 | 
			
		||||
        BTC.SynthesizeText("Sì, è proprio il mio preferito! Riempiamo i nostri zaini con qualche prelibatezza ticinese. Andiamo!")
 | 
			
		||||
        BTC.SpeechOutputEnded()
 | 
			
		||||
        Composite(Race) {
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                // Error in Speech Service: Cancel BTC Trees
 | 
			
		||||
                BTC.SpeechErrorOccured()
 | 
			
		||||
                BTC.SetBool("error")
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        BTC.SynthesizeText("Ecco, siamo arrivati a Bellinzona, è ora di scendere.")
 | 
			
		||||
        BTC.SpeechOutputEnded()
 | 
			
		||||
            RunTree("20_SBB_Story_A_Picknicken_Start")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        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("20_SBB_Story_A_Picknicken_Start") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.StartF1")
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        BTC.Run("MediaPlayer.VIDEOS.StartFidle2")
 | 
			
		||||
 | 
			
		||||
        BTC.AddPossbileSpeechIntent("Story_A_Picknicken-Start-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()
 | 
			
		||||
                        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.StartFidle2")
 | 
			
		||||
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.StartF3")
 | 
			
		||||
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.Wait(7)
 | 
			
		||||
                BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        // Go to Slideshow 2.1: Bellinzona Bahnhof to Geschaeft
 | 
			
		||||
        BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
        BTC.Run("LoadScene.NEXT.22Geschaeft")
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -12,9 +12,8 @@
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
                RunTree("22_Geschaeft_Story_A_Picknicken_Intro")
 | 
			
		||||
                //RunTree("22_Geschaeft_Baeckerei_Outro")
 | 
			
		||||
                RunTree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Intro")
 | 
			
		||||
                //RunTree("22_Geschaeft_Story_A_Picknicken_Mitnehmen") 
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -36,17 +35,146 @@
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Tree("22_Geschaeft_Story_A_Picknicken_Intro") {
 | 
			
		||||
Tree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Intro") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.Intro1StoryAPickni")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.Intro1StoryAPickni")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.Intro1StoryAPickni")
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_01")
 | 
			
		||||
            BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroF2")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.Intro2StoryAPickni")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.Intro2StoryAPickni")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.Intro2StoryAPickni")
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroFidl_03")
 | 
			
		||||
            BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_01")
 | 
			
		||||
        }
 | 
			
		||||
        BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroV4")
 | 
			
		||||
 | 
			
		||||
        BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Intro.3")
 | 
			
		||||
        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) {
 | 
			
		||||
@ -79,11 +207,18 @@ Tree("22_Geschaeft_Story_A_Picknicken_Intro") {
 | 
			
		||||
                BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
 | 
			
		||||
                // --- Story A Picknicken - Nachfrage Bestellung ---
 | 
			
		||||
                BTC.Show("Depthkit.VIDEOS.NachfrageBestellun_01")
 | 
			
		||||
                BTC.Run("Depthkit.VIDEOS.NachfrageBestellun_01")
 | 
			
		||||
                BTC.Hide("Depthkit.VIDEOS.NachfrageBestellun_01")
 | 
			
		||||
                Composite(Marathon) {
 | 
			
		||||
                    BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroFidl_16")
 | 
			
		||||
                    BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_15")
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                BTC.AddPossbileSpeechIntent("Story_A_Picknicken.Nachfrage_Bestellung.2")
 | 
			
		||||
                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) {
 | 
			
		||||
@ -116,36 +251,53 @@ Tree("22_Geschaeft_Story_A_Picknicken_Intro") {
 | 
			
		||||
                        BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
 | 
			
		||||
                        // --- Story A Picknicken - Bestellung Begleiter Beide ---
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide01")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide01")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide01")
 | 
			
		||||
                        Composite(Marathon) {
 | 
			
		||||
                            BTC.Hide("MediaPlayer.VIDEOS.NachfrageBestellun_VIdle4")
 | 
			
		||||
                            BTC.Hide("MediaPlayer.VIDEOS.NachfrageBestellun_FIdle01")
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide02")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide02")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide02")
 | 
			
		||||
                        Composite(Marathon) {
 | 
			
		||||
                            Composite(Sequence) {
 | 
			
		||||
                                BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideV5")
 | 
			
		||||
                                BTC.Run("MediaPlayer.VIDEOS.BaeckereiIntroVidl_06")
 | 
			
		||||
                            }       
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide03")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide03")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide03")
 | 
			
		||||
                            BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideF3")
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide04")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide04")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide04")
 | 
			
		||||
                        Composite(Marathon) {
 | 
			
		||||
                            BTC.Hide("MediaPlayer.VIDEOS.BaeckereiIntroVidl_06")
 | 
			
		||||
                            BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle4")
 | 
			
		||||
                        }
 | 
			
		||||
                        BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideV6")
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide05")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide05")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide05")
 | 
			
		||||
                        Composite(Marathon) {
 | 
			
		||||
                            BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle10")
 | 
			
		||||
                            BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle4")
 | 
			
		||||
                        }
 | 
			
		||||
                        BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideF11")
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide07")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide07")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide07")
 | 
			
		||||
                        Composite(Marathon) {
 | 
			
		||||
                            BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle10")
 | 
			
		||||
                            BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle12")
 | 
			
		||||
                        }
 | 
			
		||||
                        BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideV13")
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.BestellungBegleite_Beide06")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.BestellungBegleite_Beide06")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_Beide06")
 | 
			
		||||
                        Composite(Marathon) {
 | 
			
		||||
                            BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideFIdle12")  
 | 
			
		||||
                            BTC.Run("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle14")
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
                        RunTree("22_Geschaeft_Baeckerei_Outro")
 | 
			
		||||
                        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
 | 
			
		||||
@ -156,11 +308,23 @@ Tree("22_Geschaeft_Story_A_Picknicken_Intro") {
 | 
			
		||||
Tree("22_Geschaeft_Story_A_Picknicken_Mitnehmen") {
 | 
			
		||||
// --- Story A Picknicken - Mitnehmen ---
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.Mitnehmen1StoryAPi")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.Mitnehmen1StoryAPi")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.Mitnehmen1StoryAPi")
 | 
			
		||||
        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.AddPossbileSpeechIntent("Story_A_Picknicken.Mitnehmen.2")
 | 
			
		||||
        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) {
 | 
			
		||||
@ -192,51 +356,125 @@ Tree("22_Geschaeft_Story_A_Picknicken_Mitnehmen") {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.Mitnehmen5StoryAPi")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.Mitnehmen5StoryAPi")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.Mitnehmen5StoryAPi")
 | 
			
		||||
        BTC.Hide("MediaPlayer.VIDEOS.BezahleneinzelnVid_03")
 | 
			
		||||
        BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnV4")
 | 
			
		||||
        BTC.Run("MediaPlayer.VIDEOS.BezahleneinzelnVid_05")
 | 
			
		||||
 | 
			
		||||
        // --- Story A Picknicken - Bezahlen einzeln ---
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.Bezahleneinzeln1St")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.Bezahleneinzeln1St")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.Bezahleneinzeln1St")
 | 
			
		||||
 | 
			
		||||
        // ToDo: Bezahlung mit Handy User
 | 
			
		||||
        // 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.Show("Depthkit.VIDEOS.NachfrageBezahlung_01")
 | 
			
		||||
                BTC.Run("Depthkit.VIDEOS.NachfrageBezahlung_01")
 | 
			
		||||
                BTC.Hide("Depthkit.VIDEOS.NachfrageBezahlung_01")
 | 
			
		||||
                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
 | 
			
		||||
 | 
			
		||||
                        BTC.Show("Depthkit.VIDEOS.NachfrageBezahlung_03")
 | 
			
		||||
                        BTC.Run("Depthkit.VIDEOS.NachfrageBezahlung_03")
 | 
			
		||||
                        BTC.Hide("Depthkit.VIDEOS.NachfrageBezahlung_03")
 | 
			
		||||
                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.Hide("Depthkit.VIDEOS.NachfrageBezahlung_01")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.NachfrageBezahlung_03")
 | 
			
		||||
 | 
			
		||||
        // --- Story A Picknicken - Dank Einkauf ---
 | 
			
		||||
// --- old
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.DankEinkauf1StoryA")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.DankEinkauf1StoryA")
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.DankEinkauf1StoryA")
 | 
			
		||||
@ -311,19 +549,19 @@ Tree("22_Geschaeft_Story_A_Picknicken_Mitnehmen") {
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.BestellungBegleite_10")
 | 
			
		||||
 | 
			
		||||
        BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
        RunTree("22_Geschaeft_Baeckerei_Outro")
 | 
			
		||||
        RunTree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Outro")
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Tree("22_Geschaeft_Baeckerei_Outro") {
 | 
			
		||||
// --- Baeckerei Outro ---
 | 
			
		||||
Tree("22_Geschaeft_Story_A_Picknicken_Baeckerei_Outro") {
 | 
			
		||||
// --- Story A Picknicken - Baeckerei Outro ---
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -3.068, 0, 1.3)
 | 
			
		||||
            BTC.SetPosition("GO.HANDMENU", -3.068, 0, 1.3)
 | 
			
		||||
            BTC.RotateToAngle("GO.XRInteractionHandsSetup.XROrigin", 0.0)
 | 
			
		||||
            BTC.RotateToAngle("GO.HANDMENU", 0.0)
 | 
			
		||||
            BTC.Hide("MediaPlayer.VIDEOS.BestellungBegleite_BeideVIdle14")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.0BaeckereiOutro")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -49,6 +49,12 @@
 | 
			
		||||
                "Scelgo il grotto."
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "intentID": "Story_A_Picknicken-Start-U-2",
 | 
			
		||||
            "intentSentences": [
 | 
			
		||||
                "Non vedo l'ora di mangiare."
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "intentID": "Zugabteil.Szenenwahl.3",
 | 
			
		||||
            "intentSentences": [
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Videos/Baeckerei/Story_A_Picknicken-Nachfrage_Bezahlung-F-4.mp4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Videos/Baeckerei/Story_A_Picknicken-Nachfrage_Bezahlung-F-4.mp4
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Videos/Baeckerei/Story_A_Picknicken-Nachfrage_Bezahlung-F-6.mp4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Videos/Baeckerei/Story_A_Picknicken-Nachfrage_Bezahlung-F-6.mp4
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Videos/SBB/Story_A_Picknicken-Start-F-idle-2.mp4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Videos/SBB/Story_A_Picknicken-Start-F-idle-2.mp4
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user