Example #1
0
        public void EnqueueSound(TriggerSoundArgs sound)
        {
            _soundQueue.Enqueue(sound);

            if (!IsRunning)
            {
                Reset();
                Start();
            }
        }
Example #2
0
 //TODO: Ideally this would be an internal method that could only be called by the trigger logic.
 public static void OnTriggerActivated(TriggerSoundArgs sound)
 {
     TriggerActivated?.Invoke(null, sound);
 }
Example #3
0
 internal void triggerWorkerPool_TriggerActivated(object sender, TriggerSoundArgs soundArgs)
 {
     EnqueueSound(soundArgs);
 }