예제 #1
0
 public void Init(AudioClipData data, bool loop)
 {
     _audioSource.outputAudioMixerGroup = data.mixerGroup;
     _audioSource.clip = data.clip;
     _audioSource.loop = loop;
 }
예제 #2
0
 public void Play(AudioClipData data, bool loop)
 {
     Init(data, loop);
     Play();
 }
예제 #3
0
 public void PlayClipFromData(AudioClipData data)
 {
     _audioSourcePool.GetObject()
     .GetComponent <AudioSourceController>()
     .Play(data, false);
 }