Just use the script example provided with the [documentation][1]. (The approach you take is documented as being bad for memory.)
[1]: http://docs.unity3d.com/ScriptReference/Input.GetTouch.html
↧