Ejemplo n.º 1
0
 public void onClick()
 {
     if (!Found)
     {
         Found = true;
         if (soundEffect != null)
         {
             SoundQueueProcessor.Add(soundEffect);
         }
     }
 }
 public void PlayMessage()
 {
     if (!SoundQueueProcessor.isPlaying)
     {
         SoundQueueProcessor.Add(_spyable_object_control.ISpyIntroSound, 100);
         foreach (var spyable_object in _spyable_object_control.SpyableObjectList)
         {
             if (!spyable_object.Found)
             {
                 SoundQueueProcessor.Add(spyable_object.soundEffect, 50);
             }
         }
     }
 }
Ejemplo n.º 3
0
 protected override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     SoundQueueProcessor.Process();
 }