private static void PlayMissSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddSplash(row, column); } Audio.PlaySoundEffect(GameResources.GameSound("Miss")); UtilityFunctions.DrawAnimationSequence(); }
private static void PlayHitSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddExplosion(row, column); } Audio.PlaySoundEffect(GameResources.GameSound("Hit")); UtilityFunctions.DrawAnimationSequence(); }
/// <summary> /// Show hit animation and play hit sound effect /// </summary> /// <param name="row">Row which was hit</param> /// <param name="column">Column which was hit</param> /// <param name="showAnimation">Weather to show the hit animation</param> private static void PlayHitSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddExplosion(row, column); } if (Extentions.MusicPlaying == true) { Audio.PlaySoundEffect(GameResources.GetSound("Hit")); } else if (Extentions.MusicPlaying == false) { } UtilityFunctions.DrawAnimationSequence(); }