if (soundEmitter != null)
{
soundEmitter.PlayAudioClip(clipsToPlay[i], settings, audioCue.looping, position);
if(!audioCue.looping)
if (!audioCue.looping)
soundEmitter.OnSoundFinishedPlaying += OnSoundEmitterFinishedPlaying;
}
public void RaiseEvent(AudioCueSO audioCue, AudioConfigurationSO audioConfiguration, Vector3 positionInSpace)
if(OnAudioCueRequested != null)
if (OnAudioCueRequested != null)
OnAudioCueRequested.Invoke(audioCue, audioConfiguration, positionInSpace);
public abstract class ComponentPoolSO<T> : PoolSO<T> where T : Component
private GameObject _poolRootObject;
private GameObject PoolRootObject {
private GameObject PoolRootObject
get
if (!Application.isPlaying)