jellewie / Unity-Gnorts

Gnorts an RTS unity game
11 stars 7 forks source link

Change keybinding names #68

Closed jellewie closed 5 years ago

jellewie commented 5 years ago

Use IDs instead of names in userinput when looking for if a key has been pressed. Checking each key name is a horrible thing to do for performance. Either just make a variable 'CancelBuild = 5' (just a example) or just put the number instead of the name.

jellewie commented 5 years ago

Also change ' CodeInputManager.GetButtonDown