public static void SoundEffects() { if (SoundEffectSet()) { LoadingSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); ClickingSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); LetterSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); CorrectSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); TimeUpSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); StrikeSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); WrongSound = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); ClickingSound.Load("sounds/dropsound.wav"); LetterSound.Load("sounds/resetsound.wav"); CorrectSound.Load("sounds/correctsound.mp3"); TimeUpSound.Load("sounds/timeup.wav"); StrikeSound.Load("sounds/thunder shock sound.wav"); WrongSound.Load("sounds/wrongsound.wav"); } else { ClickingSound.Dispose(); LetterSound.Dispose(); CorrectSound.Dispose(); TimeUpSound.Dispose(); StrikeSound.Dispose(); WrongSound.Dispose(); } Loading_Sound(); Wrong_Sound(); Correct_Sound(); TimeUp_Sound(); Clicking_Sound(); Letter_Sound(); Strike_Sound(); }