How to use

To use Universal input system – you should just:

  • add InputManager script to any game object
  • choose default input source (from UnputType list)
  • setup which buttons you want to use
  • access to InputManager function GetDirection() or/and buttonsControl list

GetDirection() returns normalized Vector2 (x,y) where x and y– offsets by related axis.
buttonsControl [i].isPressed () returns true if button (from buttonsControl list) with index i is pressed.