Esempio n. 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());
     }
 }
Esempio n. 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());
     }
 }
Esempio n. 3
0
 static void EnvironmentConditions_Start_Post(EnvironmentConditions __instance)
 => TryUpdateTemperatureData();