예제 #1
0
        public virtual void PlayOneShot(TKey soundType)
        {
            if (SoundKit == null)
            {
                return;
            }

            SoundEntry entry = SoundKit.FindSound(soundType, false);

            if (entry == null)
            {
                return;
            }

            LastSoundType = soundType;
            entry.PlayAtSource(source);
        }