Пример #1
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     rb.velocity = Vector2.zero;
     PC.ChangeColliderSize(new Vector2(1f, 1f));
     PC.ChangeLayer2Squat();
     playeranimator.JumpRollinged = 0;
 }
Пример #2
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     rb.velocity = new Vector2(rb.velocity.x, rb.gravityScale * PC.PP.JumpPower);
     PC.ChangeLayer2Squat();
 }
Пример #3
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ChangeColliderSize(new Vector2(3, 3));
     PC.ChangeLayer2Squat();
     rb.velocity = Vector2.zero;
 }
Пример #4
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     playeranimator.HasDoubleJumped = true;
     rb.velocity = new Vector2(rb.velocity.x, rb.gravityScale * PC.PP.SecondJumpPower);
     PC.ChangeLayer2Squat();
 }
Пример #5
0
 public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     PC.ColliderEnable((int)PlayerAttackColliders.JumpAttack);
     playeranimator.JumpAttacked = true;
     PC.ChangeLayer2Squat();
 }
Пример #6
0
 public override void Execute(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     rb.velocity = velo;
     PC.ChangeLayer2Squat();
 }