예제 #1
0
 public static void PlayAudio(AudioClip clip, Vector3 position, float volume)
 {
     if (pool.Count >= 1)
     {
         AudioPlayer player = pool.GetElement();
         player.transform.position = position;
         player.Play(clip, volume);
     }
 }