working on a little mobile game… and i want to be able to use my desktop keyboard while also being able to use my joystick without creating separate methods?
this code below isnt working right. the UNITY_STANDALONE_WIN is grayed out. whats the best way to do this?
Vector2 move = Vector2.zero;
float MoveJoy = variableJoystick.Horizontal;
#if UNITY_IOS
move.x = MoveJoy;
#endif
#if UNITY_STANDALONE_WIN
move.x = Input.GetAxis("Horizontal");
#endif