float h = Input.GetAxis("Horizontal") ;//h range from -1 to 1 float v = Input.GetAxis("Vertical") ;//v range from -1 to 1 float h = Input.GetAxisRaw("Horizontal") ;//h is -1, 0, or 1 float v = Input.GetAxisRaw("Vertical&
Programs take input and produce output. The output is the result of doing something with the input. Input, transform, output, done. This pattern is easy to see when the program is a UNIX tool. Take a string, count the words, print out the result. But