public void PlaySoundEffectOneShot(string name) { SoundEffectPlayer player = GetSoundEffectPlayer(name, false); player.Play(); autoDestroyList.Add(player); }
public void PlaySoundEffectOneShot(string name, float delay, Vector3 pos) { SoundEffectPlayer player = GetSoundEffectPlayer(name, false); player.Position = pos; player.PlayDelay(delay); autoDestroyList.Add(player); }