private IEnumerator DoAttack() { Animator.SetTrigger("attack"); _isAttacking = true; AttackSound.PlayRandomPitch(); yield return(new WaitForSeconds(0.2f)); _isAttacking = false; }