- Home /
Question by
ahbreezy · Aug 16, 2016 at 05:11 AM ·
inputmobiletouchinputmanager
Tie touch logic into InputManager
I have a character controller for a 2d platformer. I have my script for my character look for
InputManager.GetButtonDown("Jump")
and have logic based on that being true. This works for PC because I am able to configure it with the input manager. My question is whats the best way to not change my character code to look for that OR specific touch code just for mobile games. Is there some way to tie mobile touch logic (think swipes and touches on a half of a screen) to fire or simulate the virtual Jump button being pressed in separate script?
Comment