コード例 #1
0
 // OnStateUpdate is called on each Update frame between OnStateEnter and OnStateExit callbacks
 public override void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (stateInfo.normalizedTime >= 1)
     {
         Ended.SafeFire();
     }
     else
     {
         Update.SafeFire();
     }
 }