Example #1
0
 public void Despawn(SoundEvent soundEvent)
 {
     if (_pool.Count < _size)
     {
         _pool.Add(soundEvent);
     }
 }
Example #2
0
 private void OnSoundEventComplete(SoundEvent soundEvent)
 {
     if (_curPlayingTraceableSounds.Find(e => e.EventId == soundEvent.EventId) != null)
     {
         _soundEventsToStop.Add(soundEvent.EventId);
         soundEvent.OnComplete -= OnSoundEventComplete;
     }
 }
Example #3
0
 private void AddSoundToTraceableSounds(int soundEventId, SoundEvent soundEvent)
 {
     _curPlayingTraceableSoundIds.Add(soundEventId);
     _curPlayingTraceableSounds.Add(soundEvent);
 }