// Executed when player releases the special attack key. Ends charging and starts the attack public void SpecialAttackRelease() { if (_specialCharging) { SetColliderPositionToHero(); _specialCharging = false; _specialCollider.SetActive(true); StopAllCoroutines(); _moveSpecialCollider = true; _SpecialColliderSize = 1; if (_fullyCharged) { _movement.SetAttackAnimation("HammerSpecialFull"); StartCoroutine(ResetAfterSpecial(0.5f)); StartCoroutine(ResetLightning(0.267f)); _lightningAnimator.SetInteger("Animstate", 1); StartCoroutine(_flash.Flash()); } else { _movement.SetAttackAnimation("HammerSpecial"); StartCoroutine(ResetAfterSpecial(0.5f)); } SoundManager.instance.PlaySound("lightningStrike", _movement.Source, false); SoundManager.instance.PlaySound("mjolnirLightning", _lightningSource, false); } }