SebastianLawe

Untitled

Apr 17th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1. 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