diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2018-01-03 14:00:59 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2018-01-03 14:00:59 +0100 |
| commit | 39b1a897eec86f532ca1417698057ae9e1130985 (patch) | |
| tree | eac3e871d31ebbf68a1ac08b8c83c5e32d61c683 /Penguloon/SoundManager.cs | |
| parent | a05ae287aa87259817e6ca7627986e14eeab6098 (diff) | |
pipi
Diffstat (limited to 'Penguloon/SoundManager.cs')
| -rw-r--r-- | Penguloon/SoundManager.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Penguloon/SoundManager.cs b/Penguloon/SoundManager.cs index e665197..b50e04b 100644 --- a/Penguloon/SoundManager.cs +++ b/Penguloon/SoundManager.cs @@ -7,6 +7,8 @@ namespace Penguloon public static SoundEffectInstance Baseline { get; set; } public static SoundEffectInstance BtnClick { get; set; } public static SoundEffectInstance BtnClick2 { get; set; } + public static SoundEffectInstance BtnClick3 { get; set; } + public static SoundEffectInstance PlaceObject { get; set; } public static void StartBaseline() { @@ -43,6 +45,32 @@ namespace Penguloon BtnClick2.Play(); } + public static void PlayClickSound3() + { + if (BtnClick3 == null) + { + SoundEffect effect = ContentManager.GetSound("Sounds/click3"); + BtnClick3 = effect.CreateInstance(); + BtnClick3.Volume = 1f; + BtnClick3.IsLooped = false; + } + + BtnClick3.Play(); + } + + public static void PlayPlaceObjectSound() + { + if (PlaceObject == null) + { + SoundEffect effect = ContentManager.GetSound("Sounds/placeobject"); + PlaceObject = effect.CreateInstance(); + PlaceObject.Volume = 1f; + PlaceObject.IsLooped = false; + } + + PlaceObject.Play(); + } + public static void PlayBalloonPopSound() { SoundEffect popEffect = ContentManager.GetSound("Sounds/pop"); |
