Beispiel #1
0
 override public void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     currentTimer -= Time.deltaTime;
     if (currentTimer > 0)
     {
         controller.StrafeTarget(directionInt);
     }
     else
     {
         animator.SetBool("strafeTarget", false);
     }
 }