UP-Viagg-io/Viagg-io/Assets/Scripts/Audio/OnStirringSound.cs

25 lines
429 B
C#
Raw Normal View History

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
{
#if FMOD_AVAILABLE
2025-01-07 17:33:31 +01:00
[SerializeField]
EventReference stirringDrySoundRef;
[SerializeField]
StudioEventEmitter emitter;
void Start()
{
emitter.Stop();
emitter.ChangeEvent(stirringDrySoundRef);
}
#endif
2025-01-07 17:33:31 +01:00
}