Using the touchpad to interact with buttons
To get a good feel of how the OUYA touchpad works, we'll begin by utilizing its most simple functionality: clicking on the GUI buttons. We'll create and expand on a cannonball game prototype throughout the chapter, creating a clickable button to fire a cannonball and eventually overriding the touch functionality to calculate the power and angle based on a swipe gesture.
Creating the cannonball prototype
The goal of our cannonball game will be to hit a target on the other side of the screen by applying a variable force to the cannon prefab. Before we implement touch functionality, we have to create the cannon itself.