I am new to game development in Unity and have a question regarding the handling of multiple input handling. For an example:
void Update()
{
if (Input.GetKeyDown(KeyCode.G))
{
// drop current weapon here
}
if (Input.GetKeyDown(KeyCode.E))
{
// interact here
}
}
This is the most common way I see people showing how to handle keyboard key presses, but is it the right way of doing it? I guess my question is, When does this approach lose it's effectiveness with regard to number of inputs, since right now I will be having around 10 inputs.