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