Exemplo n.º 1
0
 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++;
 }
Exemplo n.º 2
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ChangeLayer2Invincible();
     dir = playeranimator.Direction;
 }
Exemplo n.º 3
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ChangeLayer2Invincible();
     PC.ColliderEnable((int)PlayerAttackColliders.RollingAttack);
 }