Compare commits
No commits in common. "9fb35fc9b306ad397a3faaed91a2a46d83cec1e5" and "2cbd840880e4b35824dc73ef7a9e54043e5da820" have entirely different histories.
9fb35fc9b3
...
2cbd840880
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -5,12 +5,12 @@
|
||||||
|
|
||||||
//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")
|
||||||
//RunTree("32_Grotto_Kueche_Zusammen_Kochen")
|
//RunTree("32_Grotto_Kueche_Zusammen_Kochen")
|
||||||
//RunTree("32_Grotto_Im_Grotto_Essen_Intro")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -458,13 +458,11 @@ Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") {
|
||||||
Tree("32_Grotto_Kueche_Intro") {
|
Tree("32_Grotto_Kueche_Intro") {
|
||||||
// --- Kueche - Intro ---
|
// --- Kueche - Intro ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
// Initialization
|
|
||||||
BTC.Run("StudioEventEmitter.STATIC.Ambi3D")
|
|
||||||
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche1FIntro")
|
BTC.Run("AudioSource.AUDIO.Kueche1FIntro")
|
||||||
|
|
||||||
// Schuerze greifen
|
// Schuerze greifen
|
||||||
BTC.Run("GO/NamedGrabEvent.INTERACTABLES.Schuerze")
|
BTC.Run("GO/NamedGrabEvent.INTERACTABLES.Schuerze")
|
||||||
|
//BTC.GetKeyDown("Return")
|
||||||
BTC.Hide("GO/NamedGrabEvent.INTERACTABLES.Schuerze")
|
BTC.Hide("GO/NamedGrabEvent.INTERACTABLES.Schuerze")
|
||||||
|
|
||||||
BTC.SynthesizeText("Lies mir bitte das Rezept vor.")
|
BTC.SynthesizeText("Lies mir bitte das Rezept vor.")
|
||||||
|
@ -564,11 +562,9 @@ Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
|
||||||
// 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")
|
||||||
Composite(Marathon) {
|
|
||||||
BTC.Run("StudioEventEmitter.INTERACTABLES.ZwiebelSchneiden")
|
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.SynthesizeText("Bitte suche nun die anderen Zutaten zusammen. Ich räume in der Zwischenzeit ein bisschen auf.")
|
BTC.SynthesizeText("Bitte suche nun die anderen Zutaten zusammen. Ich räume in der Zwischenzeit ein bisschen auf.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
@ -791,20 +787,14 @@ Tree("32_Grotto_Kueche_alles_gefunden") {
|
||||||
BTC.SynthesizeText("Super, du hast alles gefunden. Bitte gib nun etwas Olivenöl in den Topf.")
|
BTC.SynthesizeText("Super, du hast alles gefunden. Bitte gib nun etwas Olivenöl in den Topf.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Oel in Topf geben - ToDo: Particle Trigger
|
// Oel in Topf geben - Particle Trigger
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Olivenoel")
|
// ...
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche2Fallesgefun")
|
BTC.Run("AudioSource.AUDIO.Kueche2Fallesgefun")
|
||||||
|
|
||||||
// Herd anstellen - ToDo: Handling in Story?
|
|
||||||
BTC.Run("NamedGrabEvent.STATIC.Herdschalter")
|
|
||||||
BTC.Run("StudioEventEmitter.STATIC.HerdplatteAnstelle")
|
|
||||||
|
|
||||||
// Zwiebeln in Topf geben
|
// Zwiebeln in Topf geben
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Zwiebeln")
|
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Zwiebeln")
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
BTC.Run("Collider.INTERACTABLES.Topf")
|
||||||
BTC.Run("StudioEventEmitter.INTERACTABLES.ZwiebelnInTopf")
|
BTC.Start("StudioEventEmitter.STATIC.Herdplatte")
|
||||||
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche3Fallesgefun")
|
BTC.Run("AudioSource.AUDIO.Kueche3Fallesgefun")
|
||||||
|
|
||||||
// Frage beantworten
|
// Frage beantworten
|
||||||
|
@ -914,7 +904,6 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
|
||||||
// --- Kueche - Interesse Kochen ---
|
// --- Kueche - Interesse Kochen ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche1FInteresseK")
|
BTC.Run("AudioSource.AUDIO.Kueche1FInteresseK")
|
||||||
// ToDo: Freie Antwort als Speech Input
|
|
||||||
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Lasagne")
|
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Lasagne")
|
||||||
BTC.Show("GO.HANDMENU.Option1Button")
|
BTC.Show("GO.HANDMENU.Option1Button")
|
||||||
BTC.SetBool("32_Grotto_Kueche_Interesse_Kochen_Button_Clicked", false)
|
BTC.SetBool("32_Grotto_Kueche_Interesse_Kochen_Button_Clicked", false)
|
||||||
|
@ -1027,13 +1016,16 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche1FZusammenKo")
|
BTC.Run("AudioSource.AUDIO.Kueche1FZusammenKo")
|
||||||
|
|
||||||
// Risotto in Topf geben
|
// Risotto in Topf geben
|
||||||
|
BTC.Run("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Risotto")
|
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Risotto")
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
BTC.Run("Collider.INTERACTABLES.Topf")
|
||||||
|
|
||||||
// Ruehren
|
// Ruehren
|
||||||
|
BTC.Run("NamedGrabEvent.INTERACTABLES.Loeffel")
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Loeffel")
|
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Loeffel")
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
BTC.Run("Collider.INTERACTABLES.Topf")
|
||||||
BTC.Wait(2) // Wie lange ruehren?
|
// Wie lange ruehren?
|
||||||
|
BTC.Wait(2)
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche2FZusammenKo")
|
BTC.Run("AudioSource.AUDIO.Kueche2FZusammenKo")
|
||||||
|
|
||||||
// Wein leuchtet
|
// Wein leuchtet
|
||||||
|
@ -1043,23 +1035,9 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
|
||||||
|
|
||||||
// Wein in Topf giessen - Todo: Particle Trigger
|
// Wein in Topf giessen
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Weisswein")
|
// ...
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
|
||||||
BTC.StopSound("StudioEventEmitter.INTERACTABLES.ZwiebelnInTopf")
|
|
||||||
BTC.Run("StudioEventEmitter.INTERACTABLES.Abloeschen")
|
|
||||||
|
|
||||||
Composite(Marathon) {
|
|
||||||
Composite(Sequence) {
|
|
||||||
BTC.Wait(6)
|
|
||||||
BTC.SetFloat("StudioEventEmitter.INTERACTABLES.Abloeschen", "blubbern.transition", 1)
|
|
||||||
BTC.Show("GO.INTERACTABLES.ChangeSound") // Ruehren
|
|
||||||
}
|
|
||||||
|
|
||||||
Composite(Sequence) {
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche3FZusammenKo")
|
BTC.Run("AudioSource.AUDIO.Kueche3FZusammenKo")
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bouillon leuchtet
|
// Bouillon leuchtet
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
|
@ -1068,17 +1046,16 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
|
||||||
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
|
|
||||||
// Bouillon in Topf geben - Todo: Particle Trigger
|
// Bouillon in Topf geben
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Bouillon")
|
// ...
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche4FZusammenKo")
|
BTC.Run("AudioSource.AUDIO.Kueche4FZusammenKo")
|
||||||
|
|
||||||
// Glas Wasser mit Steinpilze in Topf geben
|
// Glas Wasser mit Steinpilze in Topf geben
|
||||||
|
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Steinpilze")
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze")
|
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze")
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
BTC.Run("Collider.INTERACTABLES.Topf")
|
||||||
|
|
||||||
//RunTree("32_Grotto_Kueche_Parmigiano")
|
RunTree("32_Grotto_Kueche_Parmigiano")
|
||||||
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1183,24 +1160,7 @@ Tree("32_Grotto_Kueche_Parmigiano") {
|
||||||
}
|
}
|
||||||
|
|
||||||
Tree("32_Grotto_Im_Grotto_Essen_Intro") {
|
Tree("32_Grotto_Im_Grotto_Essen_Intro") {
|
||||||
// --- Im Grotto Essen - Intro ---
|
|
||||||
Composite(Sequence) {
|
|
||||||
BTC.Wait(10)
|
|
||||||
|
|
||||||
// Initialization
|
|
||||||
Composite(Marathon) {
|
|
||||||
BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -3.837, 0, -10.676)
|
|
||||||
BTC.SetPosition("GO.HANDMENU", -3.837, 0, -10.676)
|
|
||||||
BTC.Run("StudioEventEmitter.STATIC.KuechenAmbi")
|
|
||||||
BTC.Run("StudioEventEmitter.AUDIO.Ambi2D")
|
|
||||||
BTC.StopSound("StudioEventEmitter.STATIC.Ambi3D")
|
|
||||||
BTC.StopSound("StudioEventEmitter.STATIC.HerdplatteAnstelle")
|
|
||||||
BTC.StopSound("StudioEventEmitter.INTERACTABLES.Abloeschen")
|
|
||||||
}
|
|
||||||
|
|
||||||
BTC.GetKeyDown("Return")
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Tree("32_Grotto_Kueche_Hide") {
|
Tree("32_Grotto_Kueche_Hide") {
|
||||||
|
|
|
@ -217,18 +217,6 @@ public class BTC : MonoBehaviour {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Task]
|
|
||||||
public void SetFloat(string objectName, string key, float value)
|
|
||||||
{
|
|
||||||
List<ComponentHandler> handlers = GetHandlers(objectName);
|
|
||||||
handlers.ForEach(handler => handler.SetFloat(Task.getState, key, value));
|
|
||||||
if (handlers.Count == 0)
|
|
||||||
{
|
|
||||||
Debug.LogWarning($"BTC.SetFloat: no components under the name '{objectName}'");
|
|
||||||
Task.SetSucceeded();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[Task]
|
[Task]
|
||||||
public void Enable(string objectName)
|
public void Enable(string objectName)
|
||||||
{
|
{
|
||||||
|
@ -290,13 +278,25 @@ public class BTC : MonoBehaviour {
|
||||||
}
|
}
|
||||||
|
|
||||||
[Task]
|
[Task]
|
||||||
public void StopSound(string objectName)
|
public void Start(string objectName)
|
||||||
{
|
{
|
||||||
List<ComponentHandler> handlers = GetHandlers(objectName);
|
List<ComponentHandler> handlers = GetHandlers(objectName);
|
||||||
handlers.ForEach(handler => handler.StopSound(Task.getState));
|
handlers.ForEach(handler => handler.Start(Task.getState));
|
||||||
if (handlers.Count == 0)
|
if (handlers.Count == 0)
|
||||||
{
|
{
|
||||||
Debug.LogWarning($"BTC.StopSound: no components under the name '{objectName}'");
|
Debug.LogWarning($"BTC.Start: no components under the name '{objectName}'");
|
||||||
|
Task.SetSucceeded();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Task]
|
||||||
|
public void Stop(string objectName)
|
||||||
|
{
|
||||||
|
List<ComponentHandler> handlers = GetHandlers(objectName);
|
||||||
|
handlers.ForEach(handler => handler.Stop(Task.getState));
|
||||||
|
if (handlers.Count == 0)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"BTC.Stop: no components under the name '{objectName}'");
|
||||||
Task.SetSucceeded();
|
Task.SetSucceeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,15 +180,6 @@ public class ComponentHandler : MonoBehaviour {
|
||||||
Task.SetError();
|
Task.SetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void SetFloat(MyBT.NodeState nodeState, string key, float value)
|
|
||||||
{
|
|
||||||
if (Task.isDebugging)
|
|
||||||
{
|
|
||||||
Debug.LogWarning($"ComponentHandler.SetFloat: not implemented for {this.GetType()}");
|
|
||||||
}
|
|
||||||
Task.SetError();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Enable(MyBT.NodeState nodeState)
|
public virtual void Enable(MyBT.NodeState nodeState)
|
||||||
{
|
{
|
||||||
if (Task.isDebugging)
|
if (Task.isDebugging)
|
||||||
|
@ -229,11 +220,19 @@ public class ComponentHandler : MonoBehaviour {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void StopSound(MyBT.NodeState nodeState)
|
public virtual void Start(MyBT.NodeState nodeState)
|
||||||
{
|
{
|
||||||
if (Task.isDebugging)
|
if (Task.isDebugging)
|
||||||
{
|
{
|
||||||
Debug.LogWarning($"ComponentHandler.StopSound: not implemented for {this.GetType()}");
|
Debug.LogWarning($"ComponentHandler.Start: not implemented for {this.GetType()}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual void Stop(MyBT.NodeState nodeState)
|
||||||
|
{
|
||||||
|
if (Task.isDebugging)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"ComponentHandler.Stop: not implemented for {this.GetType()}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,42 +71,52 @@ public class NamedStudioEventEmitter : ComponentHandler {
|
||||||
public override void Run(MyBT.NodeState nodeState) {
|
public override void Run(MyBT.NodeState nodeState) {
|
||||||
// whan aborting
|
// whan aborting
|
||||||
if (nodeState == NodeState.Aborting) {
|
if (nodeState == NodeState.Aborting) {
|
||||||
bool isOneShot;
|
|
||||||
studioEventEmitter.EventDescription.isOneshot(out isOneShot);
|
|
||||||
if (isOneShot)
|
|
||||||
{
|
|
||||||
studioEventEmitter.Stop();
|
studioEventEmitter.Stop();
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// at start
|
// at start
|
||||||
if (nodeState == NodeState.FirstRun) {
|
if (nodeState == NodeState.FirstRun) {
|
||||||
|
// reset event trigger
|
||||||
studioEventEmitter.Play();
|
studioEventEmitter.Play();
|
||||||
UnityEngine.Debug.Log($"NamedStudioEventEmitter: Event from {gameObject.name} start playing.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// int val;
|
||||||
|
// FMOD.RESULT res = studioEventEmitter.EventInstance.getTimelinePosition(out val);
|
||||||
|
|
||||||
// during runtime
|
// during runtime
|
||||||
if (nodeState == NodeState.Running) {
|
if (nodeState == NodeState.Running) {
|
||||||
bool isOneShot;
|
|
||||||
studioEventEmitter.EventDescription.isOneshot(out isOneShot);
|
|
||||||
if (!isOneShot)
|
|
||||||
{
|
|
||||||
Task.SetSucceeded();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!studioEventEmitter.IsPlaying()) {
|
if (!studioEventEmitter.IsPlaying()) {
|
||||||
|
|
||||||
Task.SetSucceeded();
|
Task.SetSucceeded();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For Looping Sounds
|
public override void Start(MyBT.NodeState nodeState)
|
||||||
public override void StopSound(MyBT.NodeState nodeState)
|
|
||||||
{
|
{
|
||||||
|
if (nodeState == NodeState.Aborting)
|
||||||
|
{
|
||||||
|
studioEventEmitter.Stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nodeState == NodeState.FirstRun)
|
||||||
|
{
|
||||||
|
studioEventEmitter.Play();
|
||||||
|
Task.SetSucceeded();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Stop(MyBT.NodeState nodeState)
|
||||||
|
{
|
||||||
|
if (nodeState == NodeState.Aborting)
|
||||||
|
{
|
||||||
|
studioEventEmitter.Stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (nodeState == NodeState.FirstRun)
|
if (nodeState == NodeState.FirstRun)
|
||||||
{
|
{
|
||||||
studioEventEmitter.Stop();
|
studioEventEmitter.Stop();
|
||||||
|
@ -114,16 +124,6 @@ public class NamedStudioEventEmitter : ComponentHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SetFloat(NodeState nodeState, string key, float value)
|
|
||||||
{
|
|
||||||
if (nodeState == NodeState.FirstRun)
|
|
||||||
{
|
|
||||||
studioEventEmitter.SetParameter(key, value);
|
|
||||||
Task.SetSucceeded();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
[Header("FMod Support disabled: Window->MyBT->PreCompiler Definitions")]
|
[Header("FMod Support disabled: Window->MyBT->PreCompiler Definitions")]
|
||||||
public string dummy;
|
public string dummy;
|
||||||
|
|
|
@ -405,12 +405,5 @@ namespace FMODUnity
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeEvent(EventReference eventRef)
|
|
||||||
{
|
|
||||||
Stop();
|
|
||||||
EventReference = eventRef;
|
|
||||||
Lookup();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2025-01-08T20:00:27.2696630Z
|
2024-12-10T18:42:57.0313470Z
|
File diff suppressed because it is too large
Load Diff
|
@ -1,23 +0,0 @@
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
using FMODUnity;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
public class ChangeFMODEvent : MonoBehaviour
|
|
||||||
{
|
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
[SerializeField]
|
|
||||||
EventReference _newSoundRef;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
StudioEventEmitter _emitter;
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
_emitter.Stop();
|
|
||||||
_emitter.ChangeEvent(_newSoundRef);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: b0b655e179ae44f17a6518841330b41a
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
|
@ -1,15 +1,11 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
using FMOD;
|
|
||||||
using FMODUnity;
|
using FMODUnity;
|
||||||
#endif
|
|
||||||
|
|
||||||
[RequireComponent(typeof(Rigidbody))]
|
[RequireComponent(typeof(Rigidbody))]
|
||||||
public class OnCollideSound : MonoBehaviour
|
public class OnCollideSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
EventReference soundRef;
|
EventReference soundRef;
|
||||||
|
|
||||||
|
@ -48,11 +44,10 @@ public class OnCollideSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
// Play default collide sound
|
// Play default collide sound
|
||||||
RuntimeManager.PlayOneShot(soundRef, transform.position);
|
RuntimeManager.PlayOneShot(soundRef, transform.position);
|
||||||
UnityEngine.Debug.Log(gameObject.name);
|
Debug.Log(gameObject.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
_specialCase = false;
|
_specialCase = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,15 +2,11 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.XR.Interaction.Toolkit;
|
using UnityEngine.XR.Interaction.Toolkit;
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
using FMOD;
|
|
||||||
using FMODUnity;
|
using FMODUnity;
|
||||||
#endif
|
|
||||||
|
|
||||||
[RequireComponent(typeof(XRGrabInteractable))]
|
[RequireComponent(typeof(XRGrabInteractable))]
|
||||||
public class OnGrabSound : MonoBehaviour
|
public class OnGrabSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
EventReference soundRef;
|
EventReference soundRef;
|
||||||
|
|
||||||
|
@ -27,5 +23,4 @@ public class OnGrabSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
RuntimeManager.PlayOneShot(soundRef, transform.position);
|
RuntimeManager.PlayOneShot(soundRef, transform.position);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,10 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.XR.Interaction.Toolkit;
|
using UnityEngine.XR.Interaction.Toolkit;
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
using FMOD;
|
|
||||||
using FMODUnity;
|
using FMODUnity;
|
||||||
#endif
|
|
||||||
|
|
||||||
public class OnSocketSnapSound : MonoBehaviour
|
public class OnSocketSnapSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
EventReference soundRef;
|
EventReference soundRef;
|
||||||
|
|
||||||
|
@ -26,5 +22,4 @@ public class OnSocketSnapSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
RuntimeManager.PlayOneShot(soundRef, transform.position);
|
RuntimeManager.PlayOneShot(soundRef, transform.position);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
using FMOD;
|
|
||||||
using FMODUnity;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
public class OnStirringSound : MonoBehaviour
|
|
||||||
{
|
|
||||||
#if FMOD_AVAILABLE
|
|
||||||
[SerializeField]
|
|
||||||
Rigidbody _rigidbody;
|
|
||||||
|
|
||||||
StudioEventEmitter _stirringSoundEvent;
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
_stirringSoundEvent = GetComponent<StudioEventEmitter>();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
if (_rigidbody.velocity != Vector3.zero)
|
|
||||||
{
|
|
||||||
if (!_stirringSoundEvent.IsPlaying())
|
|
||||||
{
|
|
||||||
_stirringSoundEvent.Play();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_stirringSoundEvent.Stop();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnDestroy()
|
|
||||||
{
|
|
||||||
_stirringSoundEvent.Stop();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 753dee63ed4644fb4826b73d51770690
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
|
@ -1,28 +0,0 @@
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
public class OnTriggerPot : MonoBehaviour
|
|
||||||
{
|
|
||||||
[SerializeField]
|
|
||||||
string loeffelTag;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
GameObject stirringSound;
|
|
||||||
|
|
||||||
private void OnTriggerEnter(Collider other)
|
|
||||||
{
|
|
||||||
if (other.tag == loeffelTag)
|
|
||||||
{
|
|
||||||
stirringSound.SetActive(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnTriggerExit(Collider other)
|
|
||||||
{
|
|
||||||
if (other.tag == loeffelTag)
|
|
||||||
{
|
|
||||||
stirringSound.SetActive(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 87cfd4637a2f74f57b00dff0a8870cb9
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
|
@ -140,9 +140,6 @@ 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