示例#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);
             }
         }
     }
 }