Have you tried looking at the unity documentation to get a basic idea of what is going on?
For the most part touch is equal to mouse clicks (its easier to think about it like this) as long as you are only thinking about one touch. Since its possible to do multiple touches/fingers at once unity uses an array to hold the touch's. If you are just looking for example code on how to handle something like swipes then maybe try out this link [http://forum.unity3d.com/threads/48601-Swipe-help-please?highlight=swipe][1] The 4th post down helped me get swipes working in my code. I find that just pasting random code in and playing around with it until i see what everything does usually helps. Anything I don't understand at all I just lookup in the documentation or google for some extra help.
[1]: http://forum.unity3d.com/threads/48601-Swipe-help-please?highlight=swipe
↧