// Summary: Plays the hit sound effect and potentially draws the animation of a succesful hit private static void PlayHitSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddExplosion(row, column); } UtilityFunctions.PlaySFX("Hit"); UtilityFunctions.DrawAnimationSequence(); }
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: Plays the miss sound effect and potentially draws the animation of a miss private static void PlayMissSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddSplash(row, column); } UtilityFunctions.PlaySFX("Miss"); UtilityFunctions.DrawAnimationSequence(); }