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); } }