コード例 #1
0
 /// <summary>
 ///     detiene un sonido de environment
 /// </summary>
 /// <param name="condition"></param>
 public void stopEnvironmentSound(EnvironmentConditions condition)
 {
     try
     {
         this.EnvironmentSounds[condition].stop();
     }
     catch (Exception e)
     {
         Console.WriteLine("Error deteniendo sonido ambiente " + condition.ToString());
         Console.WriteLine(e.ToString());
     }
 }
コード例 #2
0
 /// <summary>
 ///     comienza a reproducir un sonido de environment infinitamente
 /// </summary>
 /// <param name="condition"></param>
 public void startEnvironmentSound(EnvironmentConditions condition)
 {
     try
     {
         this.EnvironmentSounds[condition].play(true);
     }
     catch (Exception e)
     {
         Console.WriteLine("Error reproduciendo sonido ambiente " + condition.ToString());
         Console.WriteLine(e.ToString());
     }
 }