public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ChangeLayer2Invincible();
     DirectionFix();
     PC.ColliderEnable((int)PlayerAttackColliders.RollingAttack);
     UpVe = new Vector2(UpVelo.x * playeranimator.Direction, UpVelo.y);
     DoVe = new Vector2(DownVelo.x * playeranimator.Direction, DownVelo.y);
     rb.velocity = UpVe;
     playeranimator.JumpRollinged++;
 }
Esempio n. 2
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ChangeLayer2Invincible();
     dir = playeranimator.Direction;
 }
Esempio n. 3
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ChangeLayer2Invincible();
     PC.ColliderEnable((int)PlayerAttackColliders.RollingAttack);
 }