The way in which I was writing comments for my functions was consistent, but entirely in my own style. I knew there must be a better way of creating this documentation using a more standard coding convention. Indeed there is. Using triple slashes and the format for XML comments, your explanation will be viewable when you using […]
I'm working on prototyping a top-down game and wanted to start off with a bare-bones/boilerplate player controller. I found one on the forum that got me up and running quickly, but it had a little extra code and was not using Input.GetAxis or Input.GetButton. It's recommended to use these rather than Input.GetKey, because it can also apply to game controllers or other input devices. Then you can set the keys in an options screen. I'm planning on testing with an Xbox controller, so I wanted to start it off properly.