Advertisement
Munchy2007

UpdateFunction

Feb 12th, 2016
4,437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. void Update () {
  2.         if(isLocalPlayer == false) return // Don't check input if this isn't running
  3.                                           // on the local player object
  4.         hInput = Input.GetAxis("Horizontal");
  5.         vInput = Input.GetAxis("Vertical");
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement