Best way to handle inputs?
Hello Unity community!
I'm just starting out using Unity and making games and I'm trying to learn the basics the right way. I've noticed that, in tutorials, inputs are handled in the script under the Update function, in " if" statements, with GetKeyDown, GetAxis etc. This seems fine for a simple game with moving and firing, but is this really the commonly used way to handle inputs in more complex games? For example, you could have a Starcraft-like strategy game with tons of button shortcuts, I doubt having 50 "if" statements would make much sense there. I'm aware of the existence of the Unity input manager, but from what I understand it is only concerned with defining axes and not detecting input (?)
Thanks,
Ray
Your answer
Follow this Question
Related Questions
GetAxis help? 1 Answer
How to setaxis , Input.SetAxis? 0 Answers
Use FPSController/FirstPersonCharacter to Rotate a scene with a Joystick 0 Answers
Mac xbox controller triggers 1 Answer
Input.GetAxis() wrong values on laptops 0 Answers