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