24 lines
406 B
C#
24 lines
406 B
C#
|
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
|
||
|
}
|