Input for multi-touch
Accessing multi-touch is pretty easy. You access touches with Input.GetTouch(index), where the index represents the index of the touch, with the first touch occurring at index 0. From there, you can access information pretty much in the same way as accessing information about a mouse. You can also find out how many total touches are occurring with Input.touchCount. See the Examples section of this chapter for an example of how to access multi-touch input.
Mobile devices also have accelerometers and gyroscopes providing input to the device. Let’s look at how you can access those inputs.