2025-01-07 17:33:31 +01:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
#if FMOD_AVAILABLE
|
|
|
|
using FMOD;
|
|
|
|
using FMODUnity;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
public class OnStirringSound : MonoBehaviour
|
|
|
|
{
|
2025-01-08 14:14:10 +01:00
|
|
|
#if FMOD_AVAILABLE
|
2025-01-07 17:33:31 +01:00
|
|
|
[SerializeField]
|
|
|
|
EventReference stirringDrySoundRef;
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
StudioEventEmitter emitter;
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
emitter.Stop();
|
|
|
|
emitter.ChangeEvent(stirringDrySoundRef);
|
|
|
|
}
|
2025-01-08 14:14:10 +01:00
|
|
|
#endif
|
2025-01-07 17:33:31 +01:00
|
|
|
}
|