How to use the touch pad example for mobile as a button

Hello Community!

I am at my first mobile application in Unity and I am trying to use the Standard Assets (Mobile) examples. I want to use the dual touchpad example as two buttons to trigger some actions, but I need some help to understand how can I integrate the joystick script to enable the actions that I want to do. Any advice is very welcomed.


Look at how it is used inside of the First Person Controls prefab. In that you can find both LeftTouchPad and RightTouchPad as well as Player. Player is given references to those two touchpads. Then you can look inside of First Person Control (Script) (located inside Player) and you can see how it is being used.