Update 3.0 SBB
This commit is contained in:
		
							parent
							
								
									1d53b1b710
								
							
						
					
					
						commit
						2212c90608
					
				@ -1,32 +1,89 @@
 | 
			
		||||
Tree("Root") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        BTC.InitializeSpeechManager()
 | 
			
		||||
        BTC.SetSpeechRecognitionLanguage("it-IT")
 | 
			
		||||
        BTC.SetVoiceName("it-IT-IsabellaMultilingualNeural")
 | 
			
		||||
 | 
			
		||||
        Composite(Race) {
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                // Error in Speech Service: Cancel BTC Trees
 | 
			
		||||
                BTC.SpeechErrorOccured()
 | 
			
		||||
                BTC.SetBool("error")
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            RunTree("30_SBB_Story_B_Grotto_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("30_SBB_Story_B_Grotto_Start") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.StartF1")
 | 
			
		||||
            BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.1StoryBGrotto")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.1StoryBGrotto")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.1StoryBGrotto") 
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.2StoryBGrotto")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.2StoryBGrotto")
 | 
			
		||||
        BTC.Run("MediaPlayer.VIDEOS.StartFidle2")
 | 
			
		||||
        BTC.AddPossbileSpeechIntent("Zugabteil-Exposition-U-2") // TODO: Update Intent ID
 | 
			
		||||
        BTC.StartSpeechIntentRecognition()
 | 
			
		||||
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.2StoryBGrotto")
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.3StoryBGrotto")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.3StoryBGrotto")
 | 
			
		||||
        Composite(Race) {
 | 
			
		||||
            // -- Race 1: User sagt etwas
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.UserStartedSpeechInput()
 | 
			
		||||
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.3StoryBGrotto")
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.4StoryBGrotto")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.4StoryBGrotto")
 | 
			
		||||
                Composite(Selector) {
 | 
			
		||||
                    // -- Selector 1: Intent erkannt
 | 
			
		||||
                    Composite(Sequence) {
 | 
			
		||||
                        BTC.SpeechIntentRecognized()
 | 
			
		||||
                        BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.4StoryBGrotto")
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.5StoryBGrotto")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.5StoryBGrotto")
 | 
			
		||||
                    // -- Selector 2: Intent nicht erkannt
 | 
			
		||||
                    Composite(Sequence) {
 | 
			
		||||
                        BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        BTC.Hide("Depthkit.VIDEOS.5StoryBGrotto")
 | 
			
		||||
        BTC.Show("Depthkit.VIDEOS.6StoryBGrotto")
 | 
			
		||||
        BTC.Run("Depthkit.VIDEOS.6StoryBGrotto")
 | 
			
		||||
            // -- 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) {
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.Wait(41)
 | 
			
		||||
                BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.StartF3")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Go to Scene 3.2 Grotto
 | 
			
		||||
        BTC.Run("LoadScene.NEXT.32Grotto1")
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user