Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void PlayerMovement(float horizontal)
- {
- if (!this.anim.GetCurrentAnimatorStateInfo(0).IsTag("melee"))
- {
- myRigidBody.velocity = new Vector2(horizontal * Speed, myRigidBody.velocity.y);
- }
- if (slide && !anim.GetCurrentAnimatorStateInfo(0).IsName("SlideAnim"))
- {
- anim.SetBool("slide", true);
- }
- else if (!anim.GetCurrentAnimatorStateInfo(0).IsName("slide"))
- {
- anim.SetBool("slide", false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement