Skip-Feature for Grotto Essen and Grotto Kueche (in Menu and in 3.2 Scene)

This commit is contained in:
Nadine Ganz 2025-04-10 17:17:18 +02:00
parent aadb3c3622
commit dbf1dfb9e5
7 changed files with 2028 additions and 1222464 deletions

View File

@ -11,6 +11,19 @@
BTC.SetBool("error") BTC.SetBool("error")
} }
Composite(Selector) {
Composite(Sequence) {
BTC.GoToGrottoKueche()
RunTree("32_Grotto_Kueche_Init")
RunTree("32_Grotto_Kueche_Intro")
}
Composite(Sequence) {
BTC.GoToGrottoEssen()
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
}
Composite(Sequence) { Composite(Sequence) {
RunTree("32_Grotto_Story_B_Grotto_Intro") RunTree("32_Grotto_Story_B_Grotto_Intro")
//RunTree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") //RunTree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto")
@ -26,7 +39,7 @@
//RunTree("32_Grotto_Im_Grotto_Essen_Init") //RunTree("32_Grotto_Im_Grotto_Essen_Init")
//RunTree("32_Grotto_Im_Grotto_Essen_Intro") //RunTree("32_Grotto_Im_Grotto_Essen_Intro")
}
} }
} }
@ -50,6 +63,12 @@
} }
Tree("32_Grotto_Story_B_Grotto_Intro") { Tree("32_Grotto_Story_B_Grotto_Intro") {
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
}
Composite(Sequence) { Composite(Sequence) {
// Initialization // Initialization
BTC.Run("StudioEventEmitter.STATIC.AmbiGarten") BTC.Run("StudioEventEmitter.STATIC.AmbiGarten")
@ -364,10 +383,43 @@ Tree("32_Grotto_Story_B_Grotto_Intro") {
} }
} }
} }
} // Race
// Hide all videos
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.Intro1StoryBGrotto")
BTC.Hide("Depthkit.VIDEOS.Intro2StoryBGrotto")
BTC.Hide("Depthkit.VIDEOS.Intro6StoryBGrotto")
BTC.Hide("Depthkit.VIDEOS.Telefonat1StoryBGr")
BTC.Hide("Depthkit.VIDEOS.Telefonat3StoryBGr")
BTC.Hide("Depthkit.VIDEOS.Telefonat5StoryBGr")
BTC.Hide("Depthkit.VIDEOS.IdleLoopNonnaGrott")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Show("GO.GO.Home")
BTC.Hide("GO.GO.SpeechOptions")
}
// Jump to kitchen
RunTree("32_Grotto_Kueche_Init")
RunTree("32_Grotto_Kueche_Intro")
} // Sequence
} }
Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") { Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") {
// --- Story B Grotto - Antwort Nonna Kueche --- // --- Story B Grotto - Antwort Nonna Kueche ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.IdleLoopNonnaGrott")
BTC.Hide("Depthkit.VIDEOS.Outro2StoryBGrotto")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.SynthesizeText("Oh, va benissimo! Più tardi, naturalmente, offro io la cena.") BTC.SynthesizeText("Oh, va benissimo! Più tardi, naturalmente, offro io la cena.")
BTC.SpeechOutputEnded() BTC.SpeechOutputEnded()
@ -435,6 +487,8 @@ Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") {
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
} }
} }
}
}
RunTree("32_Grotto_Kueche_Init") RunTree("32_Grotto_Kueche_Init")
RunTree("32_Grotto_Kueche_Intro") RunTree("32_Grotto_Kueche_Intro")
@ -443,6 +497,18 @@ Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") {
Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") { Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") {
// --- Story B Grotto - Antwort Nonna Grotto --- // --- Story B Grotto - Antwort Nonna Grotto ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.IdleLoopNonnaGrott")
BTC.Hide("Depthkit.VIDEOS.AntwortNonnaGrotto_10")
BTC.Hide("Depthkit.VIDEOS.AntwortNonnaGrotto_15")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.SynthesizeText("Va bene. Forse puoi leggere qualcosa mentre aspetti Francesca nella sala del grotto. Hai portato qualche libro?") BTC.SynthesizeText("Va bene. Forse puoi leggere qualcosa mentre aspetti Francesca nella sala del grotto. Hai portato qualche libro?")
BTC.SpeechOutputEnded() BTC.SpeechOutputEnded()
@ -549,10 +615,12 @@ Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") {
BTC.Show("Depthkit.VIDEOS.AntwortNonnaGrotto_15") BTC.Show("Depthkit.VIDEOS.AntwortNonnaGrotto_15")
BTC.Run("Depthkit.VIDEOS.AntwortNonnaGrotto_15") BTC.Run("Depthkit.VIDEOS.AntwortNonnaGrotto_15")
BTC.Hide("Depthkit.VIDEOS.AntwortNonnaGrotto_15") BTC.Hide("Depthkit.VIDEOS.AntwortNonnaGrotto_15")
}
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init") RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro") RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} } // Sequence
} }
Tree("32_Grotto_Kueche_Init") { Tree("32_Grotto_Kueche_Init") {
@ -569,6 +637,20 @@ Tree("32_Grotto_Kueche_Init") {
Tree("32_Grotto_Kueche_Intro") { Tree("32_Grotto_Kueche_Intro") {
// --- Kueche - Intro --- // --- Kueche - Intro ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.Intro1Kueche")
BTC.Hide("Depthkit.VIDEOS.Intro2Kueche")
BTC.Hide("Depthkit.VIDEOS.leggi")
BTC.Hide("Depthkit.VIDEOS.Intro5Kueche")
BTC.Hide("Depthkit.VIDEOS.SteinpilzeHilfe1Ku")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.Intro1Kueche") BTC.Show("Depthkit.VIDEOS.Intro1Kueche")
BTC.Run("Depthkit.VIDEOS.Intro1Kueche") BTC.Run("Depthkit.VIDEOS.Intro1Kueche")
@ -686,10 +768,28 @@ Tree("32_Grotto_Kueche_Intro") {
RunTree("32_Grotto_Kueche_Zwiebeln_schneiden") RunTree("32_Grotto_Kueche_Zwiebeln_schneiden")
} }
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} // Sequence
} }
Tree("32_Grotto_Kueche_Zwiebeln_schneiden") { Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
// --- Kueche - Zwiebeln schneiden --- // --- Kueche - Zwiebeln schneiden ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.Zwiebelnschneiden5")
BTC.Hide("Depthkit.VIDEOS.Zwiebelnschneiden5")
BTC.Hide("Depthkit.VIDEOS.Zwiebelnschneiden2")
BTC.Hide("Depthkit.VIDEOS.Zwiebelnschneiden1")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.Zwiebelnschneiden1") BTC.Show("Depthkit.VIDEOS.Zwiebelnschneiden1")
BTC.Run("Depthkit.VIDEOS.Zwiebelnschneiden1") BTC.Run("Depthkit.VIDEOS.Zwiebelnschneiden1")
@ -914,11 +1014,33 @@ Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
BTC.Hide("Depthkit.VIDEOS.Zwiebelnschneiden5") BTC.Hide("Depthkit.VIDEOS.Zwiebelnschneiden5")
RunTree("32_Grotto_Kueche_alles_gefunden") RunTree("32_Grotto_Kueche_alles_gefunden")
} }
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} // Sequence
} }
Tree("32_Grotto_Kueche_alles_gefunden") { Tree("32_Grotto_Kueche_alles_gefunden") {
// --- Kueche - alles gefunden --- // --- Kueche - alles gefunden ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.allesgefunden1Kuec")
BTC.Hide("Depthkit.VIDEOS.allesgefunden2Kuec")
BTC.Hide("Depthkit.VIDEOS.allesgefunden3Kuec")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Show("GO.GO.Home")
BTC.Hide("GO.GO.SpeechOptions")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.allesgefunden1Kuec") BTC.Show("Depthkit.VIDEOS.allesgefunden1Kuec")
BTC.Run("Depthkit.VIDEOS.allesgefunden1Kuec") BTC.Run("Depthkit.VIDEOS.allesgefunden1Kuec")
@ -1061,10 +1183,25 @@ Tree("32_Grotto_Kueche_alles_gefunden") {
} }
} }
} }
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} // Sequence
} }
Tree("32_Grotto_Kueche_Interesse_Kochen") { Tree("32_Grotto_Kueche_Interesse_Kochen") {
// --- Kueche - Interesse Kochen --- // --- Kueche - Interesse Kochen ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.InteresseKochen1Ku")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.InteresseKochen1Ku") BTC.Show("Depthkit.VIDEOS.InteresseKochen1Ku")
BTC.Run("Depthkit.VIDEOS.InteresseKochen1Ku") BTC.Run("Depthkit.VIDEOS.InteresseKochen1Ku")
@ -1108,10 +1245,30 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
} }
} }
} }
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} // Sequence
} }
Tree("32_Grotto_Kueche_Kochen_Anzahl") { Tree("32_Grotto_Kueche_Kochen_Anzahl") {
// --- Kueche - Kochen Anzahl --- // --- Kueche - Kochen Anzahl ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.KochenAnzahl1Kuech")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Show("GO.GO.Home")
BTC.Hide("GO.GO.SpeechOptions")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.KochenAnzahl1Kuech") BTC.Show("Depthkit.VIDEOS.KochenAnzahl1Kuech")
BTC.Run("Depthkit.VIDEOS.KochenAnzahl1Kuech") BTC.Run("Depthkit.VIDEOS.KochenAnzahl1Kuech")
@ -1201,10 +1358,28 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
} }
} }
} }
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} // Sequence
} }
Tree("32_Grotto_Kueche_Zusammen_Kochen") { Tree("32_Grotto_Kueche_Zusammen_Kochen") {
// --- Kueche - Zusammen Kochen --- // --- Kueche - Zusammen Kochen ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen1Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen2Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen3Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen4Kue")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.ZusammenKochen1Kue") BTC.Show("Depthkit.VIDEOS.ZusammenKochen1Kue")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen1Kue") BTC.Run("Depthkit.VIDEOS.ZusammenKochen1Kue")
@ -1261,6 +1436,11 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
RunTree("32_Grotto_Kueche_Parmigiano") RunTree("32_Grotto_Kueche_Parmigiano")
} }
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} // Sequence
} }
Tree("32_Grotto_Kueche_Selbststaendig_Kochen") { Tree("32_Grotto_Kueche_Selbststaendig_Kochen") {
@ -1277,6 +1457,25 @@ Tree("32_Grotto_Kueche_Selbststaendig_Kochen") {
Tree("32_Grotto_Kueche_Parmigiano") { Tree("32_Grotto_Kueche_Parmigiano") {
// --- Kueche - Parmigiano --- // --- Kueche - Parmigiano ---
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedEventTrigger.GO.SkipChapterButton")
Composite(Marathon) {
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen5Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen6Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen7Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen8Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen10Ku")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen12Ku")
BTC.Hide("Depthkit.VIDEOS.Outro1Kueche")
BTC.Hide("Depthkit.VIDEOS.Outro2Kueche")
BTC.Hide("Depthkit.VIDEOS.Outro7Kueche")
BTC.Hide("Depthkit.VIDEOS.Outro8Kueche")
}
}
Composite(Sequence) { Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.ZusammenKochen5Kue") BTC.Show("Depthkit.VIDEOS.ZusammenKochen5Kue")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen5Kue") BTC.Run("Depthkit.VIDEOS.ZusammenKochen5Kue")
@ -1409,10 +1608,12 @@ Tree("32_Grotto_Kueche_Parmigiano") {
BTC.Show("Depthkit.VIDEOS.Outro8Kueche") BTC.Show("Depthkit.VIDEOS.Outro8Kueche")
BTC.Run("Depthkit.VIDEOS.Outro8Kueche") BTC.Run("Depthkit.VIDEOS.Outro8Kueche")
BTC.Hide("Depthkit.VIDEOS.Outro8Kueche") BTC.Hide("Depthkit.VIDEOS.Outro8Kueche")
}
} // Race
RunTree("32_Grotto_Im_Grotto_Essen_Init") RunTree("32_Grotto_Im_Grotto_Essen_Init")
RunTree("32_Grotto_Im_Grotto_Essen_Intro") RunTree("32_Grotto_Im_Grotto_Essen_Intro")
} } // Sequence
} }
Tree("32_Grotto_Im_Grotto_Essen_Init") { Tree("32_Grotto_Im_Grotto_Essen_Init") {

View File

@ -1147,6 +1147,46 @@ public class BTC : MonoBehaviour {
} }
#endregion #endregion
#region Entry Level Point
[Task]
public void GoToGrottoKueche()
{
if (Task.getState == NodeState.FirstRun)
{
if (EntryLevel.GoToGrottoKueche)
{
Debug.Log("Go to Grotto Kueche");
Task.SetSucceeded();
return;
}
else
{
Task.SetFailed();
return;
}
}
}
[Task]
public void GoToGrottoEssen()
{
if (Task.getState == NodeState.FirstRun)
{
if (EntryLevel.GoToGrottoEssen)
{
Debug.Log("Go to Grotto Essen");
Task.SetSucceeded();
return;
}
else
{
Task.SetFailed();
return;
}
}
}
#endregion
#region Oculus Input #region Oculus Input
#if OCULUSVR_AVAILABLE #if OCULUSVR_AVAILABLE
[Task] [Task]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class EntryLevel
{
public static bool GoToGrottoKueche = false;
public static bool GoToGrottoEssen = false;
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d879700825747437bbbf793189a31e35
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,13 +12,25 @@ public class LevelManager : MonoBehaviour
{ {
public Button levelButton; public Button levelButton;
public string sceneName; public string sceneName;
public string jumpPoint;
} }
[SerializeField]
private string jumpPointGrottoEssen;
[SerializeField]
private string jumpPointGrottoKueche;
// A list of LevelEntry objects that can be filled in the inspector // A list of LevelEntry objects that can be filled in the inspector
public List<LevelEntry> levels = new List<LevelEntry>(); public List<LevelEntry> levels = new List<LevelEntry>();
private void Awake() private void Awake()
{ {
// Reset entry level points
EntryLevel.GoToGrottoKueche = false;
EntryLevel.GoToGrottoEssen = false;
// Loop through each level entry and hook up the button to load the correct scene // Loop through each level entry and hook up the button to load the correct scene
foreach (var entry in levels) foreach (var entry in levels)
{ {
@ -29,6 +41,10 @@ public class LevelManager : MonoBehaviour
string sceneToLoad = entry.sceneName; string sceneToLoad = entry.sceneName;
entry.levelButton.onClick.AddListener(() => OnClickLoadLevel(sceneToLoad)); entry.levelButton.onClick.AddListener(() => OnClickLoadLevel(sceneToLoad));
string goToJumpPoint = entry.jumpPoint;
entry.levelButton.onClick.AddListener(() => SetEntryLevel(goToJumpPoint));
} }
} }
} }
@ -49,4 +65,24 @@ public class LevelManager : MonoBehaviour
yield return null; yield return null;
} }
} }
public void SetEntryLevel(string entryPoint)
{
if (string.IsNullOrEmpty(entryPoint))
{
return;
}
if (entryPoint == jumpPointGrottoEssen)
{
EntryLevel.GoToGrottoEssen = true;
return;
}
if (entryPoint == jumpPointGrottoKueche)
{
EntryLevel.GoToGrottoKueche = true;
return;
}
}
} }