Grotto Kueche Socket Interaction
parent
bf06480ab9
commit
2fee855ece
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
//RunTree("32_Grotto_Story_B_Grotto_Intro")
|
//RunTree("32_Grotto_Story_B_Grotto_Intro")
|
||||||
|
|
||||||
RunTree("32_Grotto_Kueche_Intro")
|
//RunTree("32_Grotto_Kueche_Intro")
|
||||||
RunTree("32_Grotto_Kueche_Zwiebeln_schneiden")
|
RunTree("32_Grotto_Kueche_Zwiebeln_schneiden")
|
||||||
//RunTree("32_Grotto_Kueche_alles_gefunden")
|
//RunTree("32_Grotto_Kueche_alles_gefunden")
|
||||||
//RunTree("32_Grotto_Kueche_Kochen_Anzahl")
|
//RunTree("32_Grotto_Kueche_Kochen_Anzahl")
|
||||||
|
@ -556,104 +556,210 @@ Tree("32_Grotto_Kueche_Intro") {
|
||||||
Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
|
Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
|
||||||
// --- Kueche - Zwiebeln schneiden ---
|
// --- Kueche - Zwiebeln schneiden ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche1FZwiebelnsc")
|
BTC.SynthesizeText("Nun kannst du die Zwiebeln schneiden.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Zwiebeln schneiden
|
// Zwiebeln schneiden
|
||||||
BTC.Set("Collider.INTERACTABLES.ZwiebelTrigger", "otherTag", "Messer")
|
BTC.Set("Collider.INTERACTABLES.ZwiebelTrigger", "otherTag", "Messer")
|
||||||
BTC.Run("Collider.INTERACTABLES.ZwiebelTrigger")
|
BTC.Run("Collider.INTERACTABLES.ZwiebelTrigger")
|
||||||
BTC.Run("StudioEventEmitter.INTERACTABLES.GrottoKcheZwiebeln")
|
BTC.Run("StudioEventEmitter.INTERACTABLES.ZwiebelSchneiden")
|
||||||
BTC.Hide("GO.INTERACTABLES.Zwiebel01")
|
BTC.Hide("GO.INTERACTABLES.Zwiebel01")
|
||||||
BTC.Show("GO.INTERACTABLES.GeschnitteneZwiebe")
|
BTC.Show("GO.INTERACTABLES.GeschnitteneZwiebe")
|
||||||
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche2FZwiebelnsc")
|
BTC.SynthesizeText("Bitte suche nun die anderen Zutaten zusammen. Ich räume in der Zwischenzeit ein bisschen auf.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Zutaten leuchten
|
// Zutaten leuchten
|
||||||
Composite(Marathon) {
|
Composite(Marathon) {
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
BTC.Show("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
|
BTC.Show("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
||||||
BTC.Show("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
|
BTC.Show("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
||||||
BTC.Show("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
|
BTC.Show("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
|
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
|
||||||
BTC.Show("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
|
BTC.Show("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
|
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
|
||||||
BTC.Show("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
|
BTC.Show("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
|
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
|
||||||
BTC.Show("GO/NamedSocketEvent.SOCKETS.SalzSocket")
|
BTC.Show("GO/NamedSocketEvent.SOCKETS.SalzSocket")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Zutaten auf die Arbeitsflaeche legen mithilfe Sockets
|
// Zutaten auf die Arbeitsflaeche legen mithilfe Sockets
|
||||||
Composite(Marathon) {
|
Composite(Marathon) {
|
||||||
|
// Risotto
|
||||||
Decorator (RepeatUntilFailed) {
|
Composite(Sequence) {
|
||||||
Decorator(Inverter) {
|
//BTC.GetKeyDown("Return")
|
||||||
|
BTC.SetBool("RisottoIsSnapped", false)
|
||||||
|
|
||||||
|
Composite(Race) {
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
// Success
|
||||||
|
BTC.Run("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
|
||||||
//BTC.GetKeyDown("Return")
|
//BTC.GetKeyDown("Return")
|
||||||
|
BTC.SetBool("RisottoIsSnapped")
|
||||||
|
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
||||||
|
}
|
||||||
|
|
||||||
Composite(Race) {
|
Decorator(Repeat) {
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
// Success
|
// Fail
|
||||||
BTC.Run("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
|
//BTC.GetKeyDown("Space")
|
||||||
//BTC.GetKeyDown("Return")
|
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
||||||
BTC.SetBool("RisottoIsSnapped")
|
BTC.CompareBool("RisottoIsSnapped", false)
|
||||||
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
|
||||||
}
|
|
||||||
Composite(Sequence) {
|
|
||||||
// Fail
|
|
||||||
//BTC.GetKeyDown("Space")
|
|
||||||
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
|
||||||
BTC.CompareBool("RisottoIsSnapped", false)
|
|
||||||
|
|
||||||
// Objekt geht zurueck
|
// Objekt geht zurueck
|
||||||
BTC.SetPosition("NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto", -6.733, 1.362, -18.908)
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto", -6.824, 1.335, -18.8996)
|
||||||
|
|
||||||
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
BTC.SetBool("RisottoIsSnapped", false)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // Sequence
|
||||||
|
|
||||||
BTC.CompareBool("RisottoIsSnapped")
|
// Salz
|
||||||
} // Sequence
|
Composite(Sequence) {
|
||||||
}
|
BTC.SetBool("SalzIsSnapped", false)
|
||||||
} // Repeat
|
|
||||||
|
|
||||||
|
|
||||||
|
Composite(Race) {
|
||||||
|
Composite(Sequence) {
|
||||||
|
// Success
|
||||||
|
BTC.Run("GO/NamedSocketEvent.SOCKETS.SalzSocket")
|
||||||
|
BTC.SetBool("SalzIsSnapped")
|
||||||
|
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
|
||||||
|
}
|
||||||
|
|
||||||
|
Decorator(Repeat) {
|
||||||
|
Composite(Sequence) {
|
||||||
|
// Fail
|
||||||
|
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
|
||||||
|
BTC.CompareBool("SalzIsSnapped", false)
|
||||||
|
|
||||||
|
// Objekt geht zurueck
|
||||||
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz", -6.824, 1.335, -18.8996)
|
||||||
|
|
||||||
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // Sequence
|
||||||
|
|
||||||
|
// Pfeffer
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
|
BTC.SetBool("PfefferIsSnapped", false)
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
|
|
||||||
BTC.Run("GO/NamedSocketEvent.SOCKETS.SalzSocket")
|
Composite(Race) {
|
||||||
}
|
Composite(Sequence) {
|
||||||
|
// Success
|
||||||
|
BTC.Run("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
|
||||||
|
BTC.SetBool("PfefferIsSnapped")
|
||||||
|
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
|
||||||
|
}
|
||||||
|
|
||||||
|
Decorator(Repeat) {
|
||||||
|
Composite(Sequence) {
|
||||||
|
// Fail
|
||||||
|
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
|
||||||
|
BTC.CompareBool("PfefferIsSnapped", false)
|
||||||
|
|
||||||
|
// Objekt geht zurueck
|
||||||
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer", -6.824, 1.335, -18.8996)
|
||||||
|
|
||||||
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // Sequence
|
||||||
|
|
||||||
|
// Weisswein
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
|
BTC.SetBool("WeissweinIsSnapped", false)
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
|
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
|
Composite(Race) {
|
||||||
BTC.Run("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
|
Composite(Sequence) {
|
||||||
}
|
// Success
|
||||||
|
BTC.Run("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
|
||||||
|
BTC.SetBool("WeissweinIsSnapped")
|
||||||
|
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
||||||
|
}
|
||||||
|
|
||||||
|
Decorator(Repeat) {
|
||||||
|
Composite(Sequence) {
|
||||||
|
// Fail
|
||||||
|
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
||||||
|
BTC.CompareBool("WeissweinIsSnapped", false)
|
||||||
|
|
||||||
|
// Objekt geht zurueck
|
||||||
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein", -6.824, 1.335, -18.8996)
|
||||||
|
|
||||||
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // Sequence
|
||||||
|
|
||||||
|
// Bouillon
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
|
BTC.SetBool("BouillonIsSnapped", false)
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
Composite(Race) {
|
||||||
BTC.Run("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
|
Composite(Sequence) {
|
||||||
}
|
// Success
|
||||||
|
BTC.Run("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
|
||||||
|
BTC.SetBool("BouillonIsSnapped")
|
||||||
|
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
|
}
|
||||||
|
|
||||||
|
Decorator(Repeat) {
|
||||||
|
Composite(Sequence) {
|
||||||
|
// Fail
|
||||||
|
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
|
BTC.CompareBool("BouillonIsSnapped", false)
|
||||||
|
|
||||||
|
// Objekt geht zurueck
|
||||||
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon", -6.824, 1.335, -18.8996)
|
||||||
|
|
||||||
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // Sequence
|
||||||
|
|
||||||
|
// Olivenoel
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
|
BTC.SetBool("OlivenoelIsSnapped", false)
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
Composite(Race) {
|
||||||
BTC.Run("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
|
Composite(Sequence) {
|
||||||
}
|
// Success
|
||||||
Composite(Sequence) {
|
BTC.Run("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
|
||||||
|
BTC.SetBool("OlivenoelIsSnapped")
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
|
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
|
}
|
||||||
BTC.Run("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
|
|
||||||
}
|
Decorator(Repeat) {
|
||||||
|
Composite(Sequence) {
|
||||||
|
// Fail
|
||||||
|
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
|
||||||
|
BTC.CompareBool("OlivenoelIsSnapped", false)
|
||||||
|
|
||||||
|
// Objekt geht zurueck
|
||||||
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel", -6.824, 1.335, -18.8996)
|
||||||
|
|
||||||
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
|
BTC.SpeechOutputEnded()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // Sequence
|
||||||
}
|
}
|
||||||
|
|
||||||
BTC.SetBool("RisottoIsSnapped", false)
|
|
||||||
BTC.Wait(1)
|
BTC.Wait(1)
|
||||||
|
|
||||||
Composite(Marathon) {
|
Composite(Marathon) {
|
||||||
|
|
|
@ -31,8 +31,8 @@ public class NamedStudioEventEmitter : ComponentHandler {
|
||||||
|
|
||||||
public override string ContentLabel() {
|
public override string ContentLabel() {
|
||||||
UpdateComponent();
|
UpdateComponent();
|
||||||
#if UNITY_EDITOR
|
|
||||||
string[] eventName = studioEventEmitter.EventReference.Path.Split('/');
|
/* string[] eventName = studioEventEmitter.EventReference.Path.Split('/');
|
||||||
string sndName = eventName[eventName.Length - 1];
|
string sndName = eventName[eventName.Length - 1];
|
||||||
if (sndName.Trim().Length == 0) {
|
if (sndName.Trim().Length == 0) {
|
||||||
sndName = "undefined";
|
sndName = "undefined";
|
||||||
|
@ -40,10 +40,10 @@ public class NamedStudioEventEmitter : ComponentHandler {
|
||||||
// if (manualNamePost.Trim().Length > 0) {
|
// if (manualNamePost.Trim().Length > 0) {
|
||||||
// sndName += "_" + manualNamePost;
|
// sndName += "_" + manualNamePost;
|
||||||
// }
|
// }
|
||||||
return sndName;
|
return sndName;*/
|
||||||
#else
|
|
||||||
return objName;
|
return objName;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UpdateComponent() {
|
public override void UpdateComponent() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2024-12-10T08:38:20.0914490Z
|
2024-12-10T18:42:57.0313470Z
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,26 @@
|
||||||
{
|
{
|
||||||
"intents": [
|
"intents": [
|
||||||
|
{
|
||||||
|
"intentID": "Zugabteil.Szenenwahl.3",
|
||||||
|
"intentSentences": [
|
||||||
|
"A.",
|
||||||
|
"Picknick."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Zugabteil.Szenenwahl.5",
|
||||||
|
"intentSentences": [
|
||||||
|
"B.",
|
||||||
|
"Grotto."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Zugabteil.Szenenwahl.7",
|
||||||
|
"intentSentences": [
|
||||||
|
"C.",
|
||||||
|
"Wandern."
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"intentID": "Story_B_Grotto.Intro.3",
|
"intentID": "Story_B_Grotto.Intro.3",
|
||||||
"intentSentences": [
|
"intentSentences": [
|
||||||
|
|
|
@ -5,12 +5,12 @@ EditorBuildSettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Scenes:
|
m_Scenes:
|
||||||
- enabled: 1
|
|
||||||
path: Assets/Scenes/1.0-SBB.unity
|
|
||||||
guid: 6a1144d40bbf04513a9929856271d4e7
|
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/3.2-Grotto.unity
|
path: Assets/Scenes/3.2-Grotto.unity
|
||||||
guid: 51bd2edc532024f96a432eaf867d3a47
|
guid: 51bd2edc532024f96a432eaf867d3a47
|
||||||
|
- enabled: 1
|
||||||
|
path: Assets/Scenes/1.0-SBB.unity
|
||||||
|
guid: 6a1144d40bbf04513a9929856271d4e7
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/Test-Scene.unity
|
path: Assets/Scenes/Test-Scene.unity
|
||||||
guid: 5739d873cf7d24221bea4b568b59f9c1
|
guid: 5739d873cf7d24221bea4b568b59f9c1
|
||||||
|
|
|
@ -140,6 +140,9 @@ PlayerSettings:
|
||||||
bundleVersion: 0.1
|
bundleVersion: 0.1
|
||||||
preloadedAssets:
|
preloadedAssets:
|
||||||
- {fileID: 11400000, guid: be340e3c48769439d8d18a5a2bccd498, type: 2}
|
- {fileID: 11400000, guid: be340e3c48769439d8d18a5a2bccd498, type: 2}
|
||||||
|
- {fileID: 11400000, guid: bfa1182bd221b4ca89619141f66f1260, type: 2}
|
||||||
|
- {fileID: -8196854396901781169, guid: 1a4c68ca72a83449f938d669337cb305, type: 2}
|
||||||
|
- {fileID: -64324148185763206, guid: a9a6963505ddf7f4d886008c6dc86122, type: 2}
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
m_HolographicPauseOnTrackingLoss: 1
|
m_HolographicPauseOnTrackingLoss: 1
|
||||||
|
|
Loading…
Reference in New Issue