Skip to main content
added 243 characters in body
Source Link

Input.GetButton() instead of Input.GetButtonDown()

The former checks to see if the key is currently down and outputs true for every frame during the press. The latter checks to see if the key was up last frame and down this frame (that is: true for exactly one frame until released again).

Input.GetButton() instead of Input.GetButtonDown()

The former checks to see if the key is currently down and outputs true for every frame during the press. The latter checks to see if the key was up last frame and down this frame (that is: true for exactly one frame until released again).

Source Link