Question by
whereschachi · Nov 05, 2020 at 08:11 PM ·
keyboardkeyboard input
Adding keyboard Numbers Pressed,Need to add numbers pressed
I need to use trap number keys and at every update to add that to previous sum.
For example, if I press 5 then 6 the debug message should say 11 then say I press another 8 number key. The debug message will say 19. and so on.
How can this be setup?,I need to use trap number keys at every update add that to previous sum.
For example, I press 5 then 6 the debug message should say 11 then say you press another 8 number key.
The debug message will say 19. and so on. It can only take inputs from numbers 0 to 9. Not sure how to do this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613015233im_/https://answers.unity.com/themes/thub/images/avi.jpg)