IEnumerator AnimArms() { active = true; animator.SetTrigger("ArmAttack"); yield return(new WaitForSeconds(1)); arm.ActivateArm(); yield return(new WaitForSeconds(2)); animator.SetTrigger("ArmAttackOut"); active = false; }