Hello,
I'm developing a small unity 2D game and I have some problem with the UI I designed.
The player will be able to move using UI button like ← → ↑
and will also be able to move using A,D,W keys
Sometimes, the UI doesn't call the function.
Also, I the whole game runs at 30fps, and if the player is continuously pressing and releasing a control key (i.e "D") really fast, some events (like GetKeyUp or GetKeyDown ) are not treated in the right order causing random behaviours.
Thank you for your interest