Esempio n. 1
0
        // OnStateExit is called when a transition ends and the state machine finishes evaluating this state
        override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
        {
            TaticalMovement taticalMovement = animator.GetComponent <TaticalMovement>();

            animator.transform.position = targetPosition;
            taticalMovement.UpdateGridState();
            //taticalMovement.moveLocation = Vector3.up;
            //targetPosition = Vector3.up;
            animator.GetComponent <StatusVFX>().StunVFXPlay();
        }