Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update () {
- if(isLocalPlayer == false) return // Don't check input if this isn't running
- // on the local player object
- hInput = Input.GetAxis("Horizontal");
- vInput = Input.GetAxis("Vertical");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement