Update Audio Grotto Kueche + Essen

programming
Nadine Ganz 2025-01-07 17:33:31 +01:00
parent 56f7eb0408
commit 2540747b86
9 changed files with 3230 additions and 99 deletions

View File

@ -787,8 +787,9 @@ Tree("32_Grotto_Kueche_alles_gefunden") {
BTC.SynthesizeText("Super, du hast alles gefunden. Bitte gib nun etwas Olivenöl in den Topf.")
BTC.SpeechOutputEnded()
// Oel in Topf geben - Particle Trigger
// ...
// Oel in Topf geben - ToDo: Particle Trigger
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Olivenoel")
BTC.Run("Collider.INTERACTABLES.Topf")
BTC.Run("AudioSource.AUDIO.Kueche2Fallesgefun")
// Herd anstellen
@ -910,6 +911,7 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
// --- Kueche - Interesse Kochen ---
Composite(Sequence) {
BTC.Run("AudioSource.AUDIO.Kueche1FInteresseK")
// ToDo: Freie Antwort als Speech Input
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Lasagne")
BTC.Show("GO.HANDMENU.Option1Button")
BTC.SetBool("32_Grotto_Kueche_Interesse_Kochen_Button_Clicked", false)
@ -1022,16 +1024,13 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
BTC.Run("AudioSource.AUDIO.Kueche1FZusammenKo")
// Risotto in Topf geben
BTC.Run("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Risotto")
BTC.Run("Collider.INTERACTABLES.Topf")
// Ruehren
BTC.Run("NamedGrabEvent.INTERACTABLES.Loeffel")
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Loeffel")
BTC.Run("Collider.INTERACTABLES.Topf")
// Wie lange ruehren?
BTC.Wait(2)
BTC.Wait(2) // Wie lange ruehren?
BTC.Run("AudioSource.AUDIO.Kueche2FZusammenKo")
// Wein leuchtet
@ -1041,8 +1040,12 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
// Wein in Topf giessen
// ...
// Wein in Topf giessen - Todo: Particle Trigger
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Weisswein")
BTC.Run("Collider.INTERACTABLES.Topf")
BTC.Hide("GO/StudioEventEmitter.INTERACTABLES.ZwiebelninTopf")
BTC.Show("GO.INTERACTABLES.Abloeschen")
BTC.Show("GO.INTERACTABLES.ChangeSound")
BTC.Run("AudioSource.AUDIO.Kueche3FZusammenKo")
// Bouillon leuchtet
@ -1052,12 +1055,12 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
// Bouillon in Topf geben
// ...
// Bouillon in Topf geben - Todo: Particle Trigger
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Bouillon")
BTC.Run("Collider.INTERACTABLES.Topf")
BTC.Run("AudioSource.AUDIO.Kueche4FZusammenKo")
// Glas Wasser mit Steinpilze in Topf geben
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Steinpilze")
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze")
BTC.Run("Collider.INTERACTABLES.Topf")

View File

@ -1 +1 @@
2024-12-16T19:11:12.2113660Z
2025-01-07T15:36:13.6061680Z

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if FMOD_AVAILABLE
using FMOD;
using FMODUnity;
#endif
[RequireComponent(typeof(Rigidbody))]
public class OnCollideSound : MonoBehaviour
@ -44,7 +47,7 @@ public class OnCollideSound : MonoBehaviour
{
// Play default collide sound
RuntimeManager.PlayOneShot(soundRef, transform.position);
Debug.Log(gameObject.name);
UnityEngine.Debug.Log(gameObject.name);
}
_specialCase = false;

View File

@ -2,7 +2,10 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
#if FMOD_AVAILABLE
using FMOD;
using FMODUnity;
#endif
[RequireComponent(typeof(XRGrabInteractable))]
public class OnGrabSound : MonoBehaviour

View File

@ -2,7 +2,10 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
#if FMOD_AVAILABLE
using FMOD;
using FMODUnity;
#endif
public class OnSocketSnapSound : MonoBehaviour
{

View File

@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if FMOD_AVAILABLE
using FMOD;
using FMODUnity;
#endif
public class OnStirringSound : MonoBehaviour
{
[SerializeField]
EventReference stirringDrySoundRef;
[SerializeField]
StudioEventEmitter emitter;
void Start()
{
emitter.Stop();
emitter.ChangeEvent(stirringDrySoundRef);
}
}

View File

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

View File

@ -140,9 +140,6 @@ PlayerSettings:
bundleVersion: 0.1
preloadedAssets:
- {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
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1