diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2017-12-29 17:27:49 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2017-12-29 17:27:49 +0100 |
| commit | da38e93e55b6ff46a53dcd9d2be393149089d329 (patch) | |
| tree | c19fdb964ee6f8dd8dd3102b22de541828850983 /Penguloon/SoundManager.cs | |
| parent | 5373e919a0d9e389fc2076963f610d044c21ccb5 (diff) | |
obejct info, new level selector, credits haHA
Diffstat (limited to 'Penguloon/SoundManager.cs')
| -rw-r--r-- | Penguloon/SoundManager.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Penguloon/SoundManager.cs b/Penguloon/SoundManager.cs index 8ec0ca7..e665197 100644 --- a/Penguloon/SoundManager.cs +++ b/Penguloon/SoundManager.cs @@ -6,6 +6,7 @@ namespace Penguloon { public static SoundEffectInstance Baseline { get; set; } public static SoundEffectInstance BtnClick { get; set; } + public static SoundEffectInstance BtnClick2 { get; set; } public static void StartBaseline() { @@ -29,6 +30,19 @@ namespace Penguloon BtnClick.Play(); } + public static void PlayClickSound2() + { + if (BtnClick2 == null) + { + SoundEffect effect = ContentManager.GetSound("Sounds/click2"); + BtnClick2 = effect.CreateInstance(); + BtnClick2.Volume = 1f; + BtnClick2.IsLooped = false; + } + + BtnClick2.Play(); + } + public static void PlayBalloonPopSound() { SoundEffect popEffect = ContentManager.GetSound("Sounds/pop"); |
