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 }