private static void PlayHitSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddExplosion(row, column); } if (Variables._isMute == false) //Checks Bool in MenuController.cs { Audio.PlaySoundEffect(GameResources.GameSound("Hit")); } UtilityFunctions.DrawAnimationSequence(); }
private static void PlayHitSequence(int row, int column, bool showAnimation) { if (showAnimation) { UtilityFunctions.AddExplosion(row, column); } /// <summary> /// add hit sound. /// </summary> /// <param name="row">Row.</param> /// <param name="column">Column.</param> /// <param name="showAnimation">If set to <c>true</c> show animation.</param> Audio.PlaySoundEffect(GameResources.GameSound("Hit")); UtilityFunctions.DrawAnimationSequence(); }