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

24 lines
406 B
C#
Raw Normal View History

2025-01-08 21:05:21 +01:00
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
}