Merge branch 'programming'
This commit is contained in:
commit
8c646c916e
Binary file not shown.
Binary file not shown.
BIN
Viagg-io/Assets/Audio/FMOD/Puschlav.bank
Normal file
BIN
Viagg-io/Assets/Audio/FMOD/Puschlav.bank
Normal file
Binary file not shown.
7
Viagg-io/Assets/Audio/FMOD/Puschlav.bank.meta
Normal file
7
Viagg-io/Assets/Audio/FMOD/Puschlav.bank.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7c71fdc258e9d488688f9bfe4e9fb40c
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Viagg-io/Assets/Audio/Slideshow.meta
Normal file
8
Viagg-io/Assets/Audio/Slideshow.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 520200da4f0ec417dbb2587ecb944594
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/0-ingame-vr-intro.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/0-ingame-vr-intro.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9d94e0386d6a94697b7fc74ea29d6d76
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/1-9099-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/1-9099-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e97efd9109fdd44d982b54890815714a
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/1-9099-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/1-9099-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8e7e85c4d1fb8420681596aed2d61474
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/2-9119-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/2-9119-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 69beb963378c24bf5a16a0d161c473bf
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/2-9119-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/2-9119-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e8c26ec2017c84107ba3b17d1c25750e
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/3a-8927-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/3a-8927-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c7d49f1a586be4cb592f872abb3b6bca
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/3a-8927-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/3a-8927-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9b7cd3b6db72d4d368ed4986950097dc
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/3b-8595-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/3b-8595-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 32197ed85cccc404286bb5ee87cd75f5
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/3b-8595-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/3b-8595-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6046d87321ac84fd28cd066c00293b90
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/4a-8975-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/4a-8975-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3d11b82d0cce149289e52d73a45e9b5f
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/4a-8975-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/4a-8975-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7204ed64163a74da6b3561f481c3f65c
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/4b-8623-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/4b-8623-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 67a6345fa4171440d9c28f2241ab4953
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/4b-8623-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/4b-8623-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 06b126809972042d29c01dc46815819d
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/5a-9003-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/5a-9003-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bb67aa9f184e24dc1960ad0e079a2711
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/5a-9003-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/5a-9003-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 02520ea4c846c4fc1a3386b114fcac5c
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/5b-8511-voice-1.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/5b-8511-voice-1.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2351baa42407c4cfeb10a5387f774a28
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
Viagg-io/Assets/Audio/Slideshow/5b-8511-voice-2.wav.meta
Normal file
23
Viagg-io/Assets/Audio/Slideshow/5b-8511-voice-2.wav.meta
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 62ec488378f0f4ecf8353d8f8c46db73
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,10 +1,922 @@
|
|||||||
Tree("Root") {
|
Tree("Root") {
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
|
BTC.InitializeSpeechManager()
|
||||||
BTC.Run("StereoSlideshow.XRInteractionHandsSetup.19099")
|
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.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
|
|
||||||
BTC.Run("LoadScene.NEXT.10SBB")
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -362,6 +362,30 @@ public class BTC : MonoBehaviour {
|
|||||||
Task.SetSucceeded();
|
Task.SetSucceeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Task]
|
||||||
|
public void LoadImage(string objectName, int index)
|
||||||
|
{
|
||||||
|
List<ComponentHandler> handlers = GetHandlers(objectName);
|
||||||
|
handlers.ForEach(handler => handler.LoadImage(Task.getState, index));
|
||||||
|
if (handlers.Count == 0)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"BTC.LoadImage: no components under the name '{objectName}'");
|
||||||
|
Task.SetSucceeded();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Task]
|
||||||
|
public void BlendImage(string objectName, int srcIndex, int dstIndex)
|
||||||
|
{
|
||||||
|
List<ComponentHandler> handlers = GetHandlers(objectName);
|
||||||
|
handlers.ForEach(handler => handler.BlendImage(Task.getState, srcIndex, dstIndex));
|
||||||
|
if (handlers.Count == 0)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"BTC.StopSound: no components under the name '{objectName}'");
|
||||||
|
Task.SetSucceeded();
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region video & sound tasks
|
#region video & sound tasks
|
||||||
|
@ -261,6 +261,22 @@ public class ComponentHandler : MonoBehaviour {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void LoadImage(MyBT.NodeState nodeState, int index)
|
||||||
|
{
|
||||||
|
if (Task.isDebugging)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"ComponentHandler.StopSound: not implemented for {this.GetType()}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual void BlendImage(MyBT.NodeState nodeState, int srcIndex, int dstIndex)
|
||||||
|
{
|
||||||
|
if (Task.isDebugging)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"ComponentHandler.StopSound: not implemented for {this.GetType()}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected float sourceAlpha;
|
protected float sourceAlpha;
|
||||||
protected float targetAlpha;
|
protected float targetAlpha;
|
||||||
protected float timeSum;
|
protected float timeSum;
|
||||||
|
@ -54,7 +54,9 @@ public class NamedStereoscopicSlideshow : ComponentHandler {
|
|||||||
case NodeState.FirstRun:
|
case NodeState.FirstRun:
|
||||||
photoTransition.Reset();
|
photoTransition.Reset();
|
||||||
_timeLeft = totalTime;
|
_timeLeft = totalTime;
|
||||||
StartCoroutine(photoTransition.SetUp());
|
string path = photoTransition.imgPathList[0];
|
||||||
|
photoTransition.ImageLoader(path);
|
||||||
|
photoTransition.SetUp();
|
||||||
break;
|
break;
|
||||||
case NodeState.Running:
|
case NodeState.Running:
|
||||||
_timeLeft -= Time.deltaTime;
|
_timeLeft -= Time.deltaTime;
|
||||||
@ -75,4 +77,35 @@ public class NamedStereoscopicSlideshow : ComponentHandler {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void BlendImage(NodeState nodeState, int srcIndex, int dstIndex)
|
||||||
|
{
|
||||||
|
if (nodeState == NodeState.FirstRun)
|
||||||
|
{
|
||||||
|
StartCoroutine(photoTransition.BlendImage(srcIndex, dstIndex));
|
||||||
|
Task.SetSucceeded();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void LoadImage(NodeState nodeState, int index)
|
||||||
|
{
|
||||||
|
// LoadImage(0): 1. bild laden im hintergrund
|
||||||
|
// Show: Setup srctxt (1. bild einblenden) + im hintergrund loadImage(1)
|
||||||
|
// (Sprachinput): blendimage(2)
|
||||||
|
if (nodeState == NodeState.FirstRun)
|
||||||
|
{
|
||||||
|
string path = photoTransition.imgPathList[index];
|
||||||
|
StartCoroutine(photoTransition.ImageLoader(path));
|
||||||
|
Task.SetSucceeded();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Show(NodeState nodeState)
|
||||||
|
{
|
||||||
|
if (nodeState == NodeState.FirstRun)
|
||||||
|
{
|
||||||
|
photoTransition.SetUp();
|
||||||
|
Task.SetSucceeded();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,11 @@ public class NamedStudioEventEmitter : ComponentHandler {
|
|||||||
{
|
{
|
||||||
if (nodeState == NodeState.FirstRun)
|
if (nodeState == NodeState.FirstRun)
|
||||||
{
|
{
|
||||||
studioEventEmitter.Stop();
|
if (studioEventEmitter.IsPlaying())
|
||||||
|
{
|
||||||
|
studioEventEmitter.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
Task.SetSucceeded();
|
Task.SetSucceeded();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -703,6 +703,7 @@ MonoBehaviour:
|
|||||||
- Grotto_Essen
|
- Grotto_Essen
|
||||||
- Grotto_Kueche
|
- Grotto_Kueche
|
||||||
- Picknick.Baeckerei
|
- Picknick.Baeckerei
|
||||||
|
- Puschlav
|
||||||
- SBB
|
- SBB
|
||||||
BanksToLoad:
|
BanksToLoad:
|
||||||
- Grotto.Essen
|
- Grotto.Essen
|
||||||
@ -713,7 +714,7 @@ MonoBehaviour:
|
|||||||
LiveUpdatePort: 9264
|
LiveUpdatePort: 9264
|
||||||
EnableMemoryTracking: 0
|
EnableMemoryTracking: 0
|
||||||
AndroidUseOBB: 0
|
AndroidUseOBB: 0
|
||||||
AndroidPatchBuild: 1
|
AndroidPatchBuild: 0
|
||||||
MeterChannelOrdering: 0
|
MeterChannelOrdering: 0
|
||||||
StopEventsOutsideMaxDistance: 0
|
StopEventsOutsideMaxDistance: 0
|
||||||
BoltUnitOptionsBuildPending: 0
|
BoltUnitOptionsBuildPending: 0
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -37,6 +37,17 @@ public class PhotoTransition : MonoBehaviour
|
|||||||
yield return new WaitForSeconds(2);
|
yield return new WaitForSeconds(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerator BlendImage(int srcIndex, int dstIndex)
|
||||||
|
{
|
||||||
|
_panorama180View.SetSrcTexture(_imgList[srcIndex]);
|
||||||
|
_panorama180View.SetDestTexture(_imgList[dstIndex]);
|
||||||
|
|
||||||
|
_panorama180View.SetTransitionInterval(2.0f);
|
||||||
|
_panorama180View.SetStateTransition(Panorama180View.Panorama180View.StateTransitionType.Blend);
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(2);
|
||||||
|
}
|
||||||
|
|
||||||
public IEnumerator LoadNextImage()
|
public IEnumerator LoadNextImage()
|
||||||
{
|
{
|
||||||
if (_state < imgPathList.Count - 1)
|
if (_state < imgPathList.Count - 1)
|
||||||
@ -71,14 +82,8 @@ public class PhotoTransition : MonoBehaviour
|
|||||||
_state = 0;
|
_state = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerator SetUp()
|
public void SetUp()
|
||||||
{
|
{
|
||||||
// Load first two images
|
|
||||||
for (int i = 0; i < 2; i++)
|
|
||||||
{
|
|
||||||
yield return StartCoroutine(ImageLoader(imgPathList[i]));
|
|
||||||
}
|
|
||||||
|
|
||||||
_panorama180View = this.GetComponent<Panorama180View.Panorama180View>();
|
_panorama180View = this.GetComponent<Panorama180View.Panorama180View>();
|
||||||
_panorama180View.SetSrcTexture(_imgList[0]);
|
_panorama180View.SetSrcTexture(_imgList[0]);
|
||||||
|
|
||||||
@ -87,7 +92,7 @@ public class PhotoTransition : MonoBehaviour
|
|||||||
_panorama180View.SetStateTransition(Panorama180View.Panorama180View.StateTransitionType.FadeIn);
|
_panorama180View.SetStateTransition(Panorama180View.Panorama180View.StateTransitionType.FadeIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator ImageLoader(string path)
|
public IEnumerator ImageLoader(string path)
|
||||||
{
|
{
|
||||||
string imgPath = Path.Combine(Application.persistentDataPath, path);
|
string imgPath = Path.Combine(Application.persistentDataPath, path);
|
||||||
imgPath = "file://" + imgPath;
|
imgPath = "file://" + imgPath;
|
||||||
|
@ -499,6 +499,166 @@
|
|||||||
"intentSentences": [
|
"intentSentences": [
|
||||||
"S\u00ec."
|
"S\u00ec."
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-1-9099_bahnhof-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Andiamo.",
|
||||||
|
"S\u00ec.",
|
||||||
|
"Voglio continuare.",
|
||||||
|
"Avanti.",
|
||||||
|
"Proseguiamo."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-1-9099_bahnhof-U-2",
|
||||||
|
"intentSentences": [
|
||||||
|
"Indietro.",
|
||||||
|
"No.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-2-9119_schild-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Voglio il giardino dei ghiacciai.",
|
||||||
|
"Andiamo.",
|
||||||
|
"Andiamo al giardino.",
|
||||||
|
"Preferisco dei ghiacciai.",
|
||||||
|
"Il ghiacciaio."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-2-9119_schild-U-1b",
|
||||||
|
"intentSentences": [
|
||||||
|
"Voglio Alp Gr\u00fcm.",
|
||||||
|
"Saliamo.",
|
||||||
|
"Voglio salire verso Alp Gr\u00fcm.",
|
||||||
|
"Preferisco l'alpe.",
|
||||||
|
"L'alpeggio."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-2-9119_schild-U-2c",
|
||||||
|
"intentSentences": [
|
||||||
|
"No.",
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-3a-8927_trichter1-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Andiamo.",
|
||||||
|
"S\u00ec.",
|
||||||
|
"Voglio continuare.",
|
||||||
|
"Avanti.",
|
||||||
|
"Proseguiamo."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-3a-8927_trichter1-U-2c",
|
||||||
|
"intentSentences": [
|
||||||
|
"No.",
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-4a-8975_trichter2-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Andiamo.",
|
||||||
|
"S\u00ec",
|
||||||
|
"Voglio continuare.",
|
||||||
|
"Avanti.",
|
||||||
|
"Proseguiamo."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-4a-8975_trichter2-U-2c",
|
||||||
|
"intentSentences": [
|
||||||
|
"No.",
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-5a-9003_valposchiavo-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Andiamo.",
|
||||||
|
"S\u00ec.",
|
||||||
|
"Voglio continuare.",
|
||||||
|
"Avanti.",
|
||||||
|
"Proseguiamo."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-5a-9003_valposchiavo-U-2",
|
||||||
|
"intentSentences": [
|
||||||
|
"No.",
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-3b-8595_alpenrosen-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Andiamo.",
|
||||||
|
"S\u00ec.",
|
||||||
|
"Voglio continuare.",
|
||||||
|
"Avanti.",
|
||||||
|
"Proseguiamo."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-3b-8595_alpenrosen-U-2",
|
||||||
|
"intentSentences": [
|
||||||
|
"No. ",
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-4b-8623_schafe-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Andiamo.",
|
||||||
|
"S\u00ec.",
|
||||||
|
"Voglio continuare.",
|
||||||
|
"Avanti.",
|
||||||
|
"Proseguiamo."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-4b-8623_schafe-U-2",
|
||||||
|
"intentSentences": [
|
||||||
|
"No.",
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_C_Puschlav-5b-8511_alp_gruem-U-1a",
|
||||||
|
"intentSentences": [
|
||||||
|
"Indietro.",
|
||||||
|
"Voglio ritornare.",
|
||||||
|
"Basta.",
|
||||||
|
"Ho finito.",
|
||||||
|
"Grazie, Francesca."
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user