From da38e93e55b6ff46a53dcd9d2be393149089d329 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Fri, 29 Dec 2017 17:27:49 +0100 Subject: obejct info, new level selector, credits haHA --- Penguloon/SoundManager.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Penguloon/SoundManager.cs') 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"); -- cgit v1.2.3-70-g09d2