Unity

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

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);
    }
}