Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playerRigidbody.velocity = Input.GetAxis("Horizontal") != 0 ? (new Vector2(Input.GetAxis("Horizontal") * speed, playerRigidbody.velocity.y)) : new Vector2(0,playerRigidbody.velocity.y));
Advertisement
Add Comment
Please, Sign In to add comment