アニメーションを一回で終了させる※編集中

Attack.cs
using UnityEngine;
using System.Collections;

public class Attack : StateMachineBehaviour
{

    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {

        animator.SetBool("Attack", false);
    }
}
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.