Пример #1
0
        public void PlaySoundEffectOneShot(string name)
        {
            SoundEffectPlayer player = GetSoundEffectPlayer(name, false);

            player.Play();
            autoDestroyList.Add(player);
        }
Пример #2
0
        public void PlaySoundEffectOneShot(string name, float delay, Vector3 pos)
        {
            SoundEffectPlayer player = GetSoundEffectPlayer(name, false);

            player.Position = pos;
            player.PlayDelay(delay);
            autoDestroyList.Add(player);
        }