Beispiel #1
0
    IEnumerator AnimArms()
    {
        active = true;
        animator.SetTrigger("ArmAttack");
        yield return(new WaitForSeconds(1));

        arm.ActivateArm();
        yield return(new WaitForSeconds(2));

        animator.SetTrigger("ArmAttackOut");
        active = false;
    }