Stirring sound in grotto kitchen
parent
6128ae9982
commit
75d6785dc6
|
@ -1048,8 +1048,18 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
BTC.Run("Collider.INTERACTABLES.Topf")
|
||||||
BTC.StopSound("StudioEventEmitter.INTERACTABLES.ZwiebelnInTopf")
|
BTC.StopSound("StudioEventEmitter.INTERACTABLES.ZwiebelnInTopf")
|
||||||
BTC.Run("StudioEventEmitter.INTERACTABLES.Abloeschen")
|
BTC.Run("StudioEventEmitter.INTERACTABLES.Abloeschen")
|
||||||
BTC.Show("GO.INTERACTABLES.ChangeSound") // Ruehren
|
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche3FZusammenKo")
|
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Bouillon leuchtet
|
// Bouillon leuchtet
|
||||||
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2025-01-08T12:58:31.1629980Z
|
2025-01-08T20:00:27.2696630Z
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,23 @@
|
||||||
|
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
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b0b655e179ae44f17a6518841330b41a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -10,15 +10,33 @@ public class OnStirringSound : MonoBehaviour
|
||||||
{
|
{
|
||||||
#if FMOD_AVAILABLE
|
#if FMOD_AVAILABLE
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
EventReference stirringDrySoundRef;
|
Rigidbody _rigidbody;
|
||||||
|
|
||||||
[SerializeField]
|
StudioEventEmitter _stirringSoundEvent;
|
||||||
StudioEventEmitter emitter;
|
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
emitter.Stop();
|
_stirringSoundEvent = GetComponent<StudioEventEmitter>();
|
||||||
emitter.ChangeEvent(stirringDrySoundRef);
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (_rigidbody.velocity != Vector3.zero)
|
||||||
|
{
|
||||||
|
if (!_stirringSoundEvent.IsPlaying())
|
||||||
|
{
|
||||||
|
_stirringSoundEvent.Play();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_stirringSoundEvent.Stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnDestroy()
|
||||||
|
{
|
||||||
|
_stirringSoundEvent.Stop();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 87cfd4637a2f74f57b00dff0a8870cb9
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue