示例#1
0
        public void PlaySoundEffectOneShot(string name)
        {
            SoundEffectPlayer player = GetSoundEffectPlayer(name, false);

            player.Play();
            autoDestroyList.Add(player);
        }
示例#2
0
        public void PlaySoundEffectOneShot(string name, Vector3 pos)
        {
            SoundEffectPlayer player = GetSoundEffectPlayer(name, false);

            player.Position = pos;
            player.Play();
            autoDestroyList.Add(player);
        }