A Bare Bones, Simple Unity Player Controller (Top Down, C#)
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.