private static void PlayMissSequence(int row, int column, bool showAnimation)
        {
            if (showAnimation)
            {
                UtilityFunctions.AddSplash(row, column);
            }

            Audio.PlaySoundEffect(GameResources.GameSound("Miss"));

            UtilityFunctions.DrawAnimationSequence();
        }
예제 #2
0
        /// <summary>
        /// Show miss animation and plays miss sound effect
        /// </summary>
        /// <param name="row">Row which was shot at</param>
        /// <param name="column">Column which was shot at</param>
        /// <param name="showAnimation">Weather to show the miss animation</param>
        private static void PlayMissSequence(int row, int column, bool showAnimation)
        {
            if (showAnimation)
            {
                UtilityFunctions.AddSplash(row, column);
            }

            if (Extentions.MusicPlaying == true)
            {
                Audio.PlaySoundEffect(GameResources.GetSound("Miss"));
            }
            else if (Extentions.MusicPlaying == false)
            {
            }
            UtilityFunctions.DrawAnimationSequence();
        }